android中listview中去除背景色选中色
16lz
2021-12-04
<ListView android:id="@+id/lv_home_weibo"android:transcriptMode="alwaysScroll" android:divider="#00000000"android:cacheColorHint="#00000000" android:listSelector="#00000000"android:dividerHeight="8dip" android:layout_width="fill_parent"android:layout_marginTop="10dip" android:layout_marginRight="10dip"android:layout_marginLeft="10dip" android:layout_height="wrap_content"android:scrollbars="vertical"></ListView>
注意
#00000000的颜色代表的是透明,不过在实际项目中,如果你通过配置文件color来获取颜色的话,会出现一些莫名奇妙
的问题,在做乐投网的时候发现头像图片显示不出,就是由于使用了配置文件进行定位图片的结果
更多相关文章
- android http 请求方式
- 大量android软件开发资料和实例代码
- 【分享】大量android软件开发资料和实例代码【转】
- 大量android软件开发资料和实例代码
- Android(安卓)Edittext获取焦点后,弹出的软键盘显示搜索、发送、
- Android(安卓)TextView跑马灯效果
- android获取手机信息大全
- android radiogroup样式(设置切换背景与文字颜色)
- 11、WebView 使用注意问题