ListView取消默认点击背景颜色
2017-03-01 10:22
337 查看
说是取消点击背景颜色,其实是把背景颜色设置为透明,如下
这样点击item的时候就看不到点击效果了,希望对你有所帮助
<ListView android:layout_width="match_parent" android:layout_height="match_parent" android:listSelector="@android:color/transparent" > </ListView>
这样点击item的时候就看不到点击效果了,希望对你有所帮助
相关文章推荐
- //点击listview的某一项改变其背景颜色,(例如,点击该项时该项的背景为黄色,其他没被点击的项,背景为率色(默认))
- 取消默认Listview点击的显示的颜色
- Android中取消GridView & ListView默认的点击背景色
- ListView GridView 取消点击背景
- UITableView点击cell取消选中背景颜色
- android listview内的TextView会在点击item的时候灰变背景颜色
- ListView,去item之间的黑线,去滑动背影,去默认的点击黄色背景
- 去除ListView点击HeadView布局有默认黄色背景效果
- Android中listview的item点击时候去掉背景颜色或者设置成透明的
- 去除或替换listview 默认的点击选中时的颜色
- listview点击某项修改背景颜色和子控件点击删除某一项
- 实现listview条目点击后改变item背景颜色和字体颜色并保留
- [原]界面上有几个球队名字的列表,将鼠标放到球队名字上就变为红色背景,其他球队背景颜色为白色,点击一个球队的时候就将点击的球队变为fontSize=30字体(fontSize=‘’回到默认)。
- android listview 设置点击item背景颜色效果
- 去除ListView默认点击背景,去除LietView滚动条
- ListView中设置item的背景色后,默认的行点击颜色失效的解决办法
- css取消a标签在移动端点击时的背景颜色(转载)
- 界面上有几个球队名字的列表,将鼠标放到球队名字上就变为红色背景,其他球队背景颜色为白色,点击一个球队的时候就将点击的球队变为fontSize=30字体(fontSize=‘’回到默认)。
- iOS 点击cell改变背景颜色或者图片&&cell中其他部分取消高亮显示
- listview、GridView单点击效果,点击改变背景改变item字体颜色实现