Closed allentown521 closed 2 years ago
补充一点,根布局是:CoordinatorLayout,使用了app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior"
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="?attr/colorSurface" android:fitsSystemWindows="true"> //PreferenceFragmentCompat嵌在这里view里面 <androidx.fragment.app.FragmentContainerView android:id="@+id/settingsContainer" android:layout_width="match_parent" android:layout_height="match_parent" app:layout_behavior="com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior" />
通过设置recyclerView.setVerticalScrollBarEnabled(false);解决了,但是似乎不太适合短列表的滚动显示,滚动条长度是固定的
列表滚动到底部后,滚动条没有滚动到底部
Expected Behavior
能否支持PreferenceFragmentCompat?PreferenceFragmentCompat里面也是RecyclerView,但是实际使用后默认的滚动条和fastscroll会同时出现
Actual Behavior
Steps to Reproduce the Problem
1. 1. 1.
Specifications