Android开发中 ListView 不能不说的几个属性
16lz
2021-12-04
<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在其上下边缘会有白色的阴影
其它的以后再续....
更多相关文章
- Android(安卓)EditView属性
- RelativeLayout布局属性
- Android(安卓)Actionbar自定义标题栏
- TextView 控件使用
- Android中的EditText属性说明
- 转载:android 各种xml资源的引用方式
- android中 menu的属性详细解释
- android:layout_alignParentRight
- 自定义ListView中的分割线