上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: 1、android:scrollbarStyle 定义滚动条的样式和位置 参考:http://www.trinea.cn/android/android-scrollbarstyle/ 2、android:cacheColorHint 原文ListView是常用的显示控件,默认背景是和系统窗口一样的 阅读全文
posted @ 2016-07-12 15:56 zhongyinghe 阅读(164) 评论(0) 推荐(0)
摘要: 1、如果只是是3-4个线性,则可以考虑RelativeLayout;多于等于5个还是尽量考虑LinearLayout好 补充:如果要把RelativeLayout作为线性布局的话,可以采用不断设置below方式进行线性布局 2、关于above、below、toLeft和toRight,设置里面的对象 阅读全文
posted @ 2016-07-12 15:18 zhongyinghe 阅读(192) 评论(0) 推荐(0)
摘要: 1、 android:layout_below="@+id/first" //在某元素的的下方; android:layout_alignBottom="@+id/first"//本元素的下边缘和某元素的的下边缘对 阅读全文
posted @ 2016-07-12 11:34 zhongyinghe 阅读(144) 评论(0) 推荐(0)
摘要: android:pivotX="50"这种方法使用绝对位置定位,相当于代码中的 Animation.ABSOLUTEandroid:pivotX="50%"这种方法相对于控件本身定位,相当于代码中的 Animation.RELATIVE_TO_SELFandroid:pivotX="50%p" 这种 阅读全文
posted @ 2016-07-10 10:59 zhongyinghe 阅读(229) 评论(0) 推荐(0)
摘要: 1、属性解析 <item name="android:windowFrame">@null</item> :Dialog的windowFrame框为无<item name="android:windowIsFloating">true</item>:是否浮现在activity之上<item name 阅读全文
posted @ 2016-07-10 00:16 zhongyinghe 阅读(3634) 评论(0) 推荐(0)
摘要: showAtLocation(parent, gravity, x, y) 第一个参数指定PopupWindow的锚点view,即依附在哪个view上。第二个参数指定起始点第三个参数设置以起始点的右下角为原点,向左、上各偏移20像素。 可以参考 :http://blog.sina.com.cn/s/ 阅读全文
posted @ 2016-07-08 10:40 zhongyinghe 阅读(2667) 评论(0) 推荐(0)
摘要: 参考:http://www.cnblogs.com/androidez/archive/2013/07/01/3164729.html 阅读全文
posted @ 2016-07-07 22:48 zhongyinghe 阅读(97) 评论(0) 推荐(0)
摘要: http://www.2ee9.com/news/news_show_36_237.html http://zhidao.baidu.com/link?url=7lWq2tgqiMiDmsRd54hOUSC14vV-gwg3XiaY6LUBu-YII_plT4w189hoQTlN0Ki6y9QXh8 阅读全文
posted @ 2016-07-05 00:31 zhongyinghe 阅读(326) 评论(0) 推荐(0)
摘要: 1、取得震动服务的句柄 vibrator = (Vibrator) getSystemService(VIBRATOR_SERVICE);或者vibrator = (Vibrator)getApplication().getSystemService(Service.VIBRATOR_SERVICE 阅读全文
posted @ 2016-07-04 10:35 zhongyinghe 阅读(501) 评论(0) 推荐(0)
摘要: 疑问:如果图片从其他地方回到原先位置,则setFillAfter(false)也可以保持图片在原先位置? 阅读全文
posted @ 2016-07-04 09:45 zhongyinghe 阅读(186) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 14 下一页