android:cacheColorHint设置拖动背景色
来源:互联网 发布:80端口代理服务器 编辑:程序博客网 时间:2024/05/03 07:40
ListView是一个经常要用到的android控件,现总结遇到过的一些美化的小细节。
1. 在没有自定义背景时候
listView.setCacheColorHint(0); 或者android:cacheColorHint="#ffffff" 去除listview的拖动背景色 自定义listview的时候,当你不使用android:cacheColorHint=“#ffffff”会出现下面选中一个空间黑色底色的情况,破坏整体美观度:
2. 有自定义背景
1、listview在拖动的时候背景图片消失变成黑色背景,等到拖动完毕我们自己的背景图片才显示出来 解决:在XML中加入 android:scrollingCache=”false” 或 android:cacheColorHint=”#00000000″ 2、listview的上边和下边有黑色的阴影 解决: android:fadingEdge=”none” 3、修改listview的Item默认选择时的黄色背景 解决:在java文件中使用listview.setSelector()方法,或使用如下代码 android:listSelector="#00000000"//这样写是透明的,也可加入Drawable图片 4、listview的每一项之间需要设置一个图片做为间隔 解决: android:divider=”@drawable/list_driver”
0 0
- android:cacheColorHint设置拖动背景色
- Android ListView 去除边缘阴影、选中色、拖动背景色等(android:cacheColorHint="#00000000")
- 【转】Android ListView 去除边缘阴影、选中色、拖动背景色等(android:cacheColorHint="#00000000")
- Android ListView 去除边缘阴影、选中色、拖动背景色等(android:cacheColorHint="#00000000")
- Android布局之 ListView 去除边缘阴影、选中色、拖动背景色等(android:cacheColorHint="#00000000")
- Android背景色设置
- Android设置背景色
- Android-ListView去除拖动背景色
- Android Studio 设置背景色
- android 设置渐变背景色
- Android设置背景色变暗
- 【Android】WebView设置背景色
- Android ListView拖动时背景色变黑问题
- Android ListView 去除边缘阴影、选中色、拖动背景色
- android设置背景色为透明
- android 设置listview item选中背景色
- Android中activity背景色的设置
- android 设置listview item选中背景色
- CentOS6.X 配置L2TP For IPsec VPN服务器 详细步骤
- C#学习之代理委托的使用
- JavaScript奇技淫巧45招
- Nginx基础. Nginx模块上下文
- 在xcode5中修改整个项目名
- android:cacheColorHint设置拖动背景色
- transitions / animation 动画
- Jexus 负载均衡
- 面试题 15
- SCSI 命令构造应用:USB指纹模块
- android进行异步更新UI的四种方式
- 四.权限命令
- IOS_UI_UIButton及其指令
- mac 环境搭建相关 安装thirft