Android

Android应用自动更新功能的实现!

Android应用自动更新功能的实现!http://blog.csdn.net/android_tutor/article/details/7015986 privatestaticfinalintDOWN_UPDATE=1;privatestaticfinalintDOWN_OVER=2;privateSt...

Android Intent 总结

//打开指定网页Intentintent=newIntent(Intent.ACTION_VIEW);intent.setData(Uri.parse("http://www.google.com"));startActivity(intent);//进行关键字搜索Intentintent=newIntent(Inte...
代码星球·2020-05-29

Android实现动态改变屏幕方向(Landscape & Portrait)

1.AndroidManifest.xml:<activity>  android:screenOrientation="portrait"  。。。 2.xx.java:<activity>android:screenOrientation="portrait"//如果是竖排,则改为...

Android中Intent传递对象的两种方法:Serializable & Parcelable

Android中Intent传递对象的有两种方法:1.Bundle.putSerializable(Key,Object);2.Bundle.putParcelable(Key,Object);publicclassxximplementsSerializable{}publicclassBookimplementsP...

Android实现透明的颜色效果(zz)

androidButton或者ImageButton背景透明状态设置 设置Button或ImageButton的背景为透明或者半透明   半透明<Buttonandroid:background="#e0000000".../>   透明<Buttonandroid:ba...

android.database.CursorIndexOutOfBoundsException:Index -1 requested, with a size of 1(zz)

android.database.CursorIndexOutOfBoundsException:Index-1requested,withasizeof1 http://blog.csdn.net/competerh_programing/article/details/7396542 andro...

android 布局的两个属性 dither 和 tileMode

tileMode(平铺)tileMode(平铺)的效果类似于让背景小图不是拉伸而是多个重复(类似于将一张小图设置电脑桌面时的效果)dither(抖动)Dither(图像的抖动处理,当每个颜色值以低于8位表示时,对应图像做抖动处理可以实现在可显示颜色总数比较低(比如256色)时还保持较好的显示效果 <bi...

Android抽屉(SlidingDrawer --类似android通知栏下拉效果)

Android抽屉(SlidingDrawer)的实现发-红黑联盟http://www.2cto.com/kf/201301/182507.html 可动态布局的Android抽屉之基础http://blog.csdn.net/hellogv/article/details/6789698 andr...

Android仿iPhone 滚轮控件 实现

Android_开发实用滚轮效果选择数字http://blog.csdn.net/zhangtengyuan23/article/details/8653771  Android仿iPhone滚轮控件实现及源码分析http://blog.csdn.net/lilu_leo/article/detai...

Android中View绘制优化

1.优化布局层次http://www.2cto.com/kf/201209/154108.html 2.使用<include/>标签复用布局文件http://www.2cto.com/kf/201209/154115.html <includelayout="@layout/tit...
代码星球·2020-05-29

Android Layout_weight 属性

Android对Layout_weight属性完全解析以及使用ListView来实现表格http://blog.csdn.net/xiaanming/article/details/13630837 Layout_weight属性:如果我们想要按照权重比例来分配LinearLayout,我们需要将其宽度设置为...
代码星球·2020-05-29

Android ListView 几个重要属性

AndroidListView几个重要属性http://blog.csdn.net/avenleft/article/details/7334060 android:transcriptMode="alwaysScroll"   android:cacheColorHint="#...

Android获取长按按键响应

Android获取长按按键响应http://www.2cto.com/kf/201312/261719.htmlAndroid下Listview的onItemClick以及onItemLongClick等易模糊问题验证http://mypyg.iteye.com/blog/850624 ListView的&n...

Android 事件

@OverridepublicbooleanonKeyDown(intkeyCode,KeyEventevent){//TODOAuto-generatedmethodstubswitch(keyCode){caseKeyEvent.KEYCODE_MENU:Log.d(TAG,"KeyEvent.KEYCODE_ME...
代码星球·2020-05-29

Android获取程序路径 (/data/data/appname)

Android获取文件夹路径/data/data/http://www.2cto.com/kf/201301/186614.html StringprintTxtPath=getApplicationContext().getPackageResourcePath()+"/files/"+fileName;=...