Android开发中 ListView 不能不说的几个属性
16lz
2021-01-23
<ListView
android:id="@+id/myList"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:listSelector="@android:color/transparent"
android:cacheColorHint="#00000000"
android:fadingEdge="none"
>
android:id="@+id/myList"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:listSelector="@android:color/transparent"
android:cacheColorHint="#00000000"
android:fadingEdge="none"
>
</ListView>
属性: android:listSelector="@android:color/transparent"
等同于使用:android:listSelector=”#00000000″ //这样写也是透明的
用来去除选中item时的高亮效果(默认橙黄色)
属性: android:cacheColorHint="#00000000"
用来去除当用户滚动ListView的时会item出现黑色阴影
属性:android:fadingEdge="none"
用来去除当用户滚动ListView在其上下边缘会有白色的阴影
其它的以后再续....
更多相关文章
- RelativeLayout布局属性
- android中 menu的属性详细解释
- android 界面布局-各个布局的属性介绍
- Android View的属性
- EditText属性大全
- 关于progressbar进度条的显示风格及一些属性的应用
- Android之TextView属性大全
- 安卓控件属性