android 改变listview的分割线的颜色
2015-06-12 10:28
567 查看
改变ListView的分割线颜色和宽度,需要在布局中定义android:divider和android:dividerHeight属性。
[html] view
plaincopy
<ListView
android:id="@+id/local_groups_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/divider_color"
android:dividerHeight="1px" />
[html] view
plaincopy
<ListView
android:id="@+id/local_groups_list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/divider_color"
android:dividerHeight="1px" />
相关文章推荐
- android命名规范
- Android程序崩溃统一处理机制
- android性能
- android客户端 与javaweb服务端的简单理解
- android调用C# 服务返回对象使用方法说明
- 【Android】永不消失的Toast
- Android开发出现”This text field does not specify an inputType or a hint“
- android 常用系统修改和设置
- android XMl 解析神奇xstream 二: 把对象转换成xml
- Android---Activity 生命周期(三)Stopping Activity && Restarting Activity
- android ListView item数值修改后刷新问题
- android设置软键盘搜索键以及监听搜索键点击时发生两次事件的问题解决
- 解决Android Studio Gradle 错误 编码GBK的不可映射字符
- 开源框架 KJFrameForAndroid
- Android字体属性及测量(FontMetrics)
- Android实战简易教程-第十四枪(介绍SwipeMenuListView-简单实现类似QQ的滑动删除效果)
- Android特效2
- android sqlit数据库的使用经验
- Android 4.3中的视觉边界布局(Optical bounds layout)
- Android Studio新手完全指引