完美解决隐藏Listview和RecyclerView去掉滚动条和滑动到边界阴影的方案
16lz
2021-01-23
转载请标明出处:
http://blog.csdn.net/ming2316780/article/details/51578621
本文出自:【Android_Jerry的博客】
一、首先是Listview的属性设置
设置滑动到顶部和底部的背景或颜色:
android:overScrollFooter="@android:color/transparent"android:overScrollHeader="@android:color/transparent"
设置滑动到边缘时无效果模式:
android:overScrollMode="never"
设置滚动条不显示:
android:scrollbars="none"
以下是整体设置(overScrollHeader和overScrollFooter可不写,此处写了是引用的透明色)
"@+id/lv_type" android:layout_width="match_parent" android:layout_height="match_parent" android:overScrollFooter="@android:color/transparent" android:overScrollHeader="@android:color/transparent" android:overScrollMode="never" android:scrollbars="none">
二、RecyclerView的属性设置
以下是整体设置:
.support.v7.widget.RecyclerView android:id="@+id/rv_search_one" android:layout_width="match_parent" android:layout_height="match_parent" android:overScrollMode="never" android:scrollbars="none" />
更多相关文章
- android:onClick 属性的应用
- android:imeOptions属性详解(Enter功能)
- android:编写属性动画程序(旋转,缩放,淡出淡入)
- Android windowSoftInputMode属性解析
- windowSoftInputMode属性设置值
- Android系统属性SystemProperties.set/get详解
- Android UI属性大解
- Android中控件的继承 通用行为和属性