Android ListView始终在布局内显示滚动条
我知道这个问题已经被问了无数次了,但我已经尝试了所有的解决方案,但没有结果 我希望垂直滚动条始终显示在屏幕上 这是我的xml:Android ListView始终在布局内显示滚动条,android,listview,Android,Listview,我知道这个问题已经被问了无数次了,但我已经尝试了所有的解决方案,但没有结果 我希望垂直滚动条始终显示在屏幕上 这是我的xml: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<android.support.v4.widget.SwipeRefreshLayout
android:id="@+id/swipe_refresh_layout"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ListView android:id="@+id/list_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingRight="16dp"
android:paddingLeft="16dp"
android:background="#ffacb8ba"
android:fadeScrollbars="false"
android:scrollbarFadeDuration="0"
android:scrollbarAlwaysDrawVerticalTrack="true"/>
</android.support.v4.widget.SwipeRefreshLayout>
</LinearLayout>
我认为这个问题可能与listview在SwiperFreshLayout中的事实有关,我不知道
救命啊 在查看文档后发现: 原来设置滚动条始终可见与始终显示快速滚动是分开的:)
listView.setFastScrollEnabled(true);