完美解决隐藏Listview和RecyclerView去掉滚动条和滑动到边界阴影的方案
16lz
2021-12-04
转载请标明出处:
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 edittext的属性
- android:layout_gravity="bottom"不起作用问题
- Android(安卓)activity属性
- Android打开系统设置界面
- error: Error retrieving parent for item: No resource found t
- android中listview控件覆盖了其它控件使下面的其它控件不显示
- android:windowSoftInputMode属性使用
- Android百分比布局:PercentRelativeLayout
- Android百分比布局:PercentRelativeLayout