Scrolling bars not showing in ListView?

I have a standard ListView. However, it does not display the track of the scroll track. Is there any special setting that needs to be set to show scrollbars? My definition is as follows:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical" 
  android:layout_width="fill_parent"
  android:layout_height="fill_parent">
  <ListView
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:dividerHeight="1dip" />
</LinearLayout>

There is data in the list, and there are enough elements to scroll through it.

thank

+3
source share
1 answer

Try either enable:

android:scrollbars="vertical"

http://developer.android.com/reference/android/view/View.html#attr_android:scrollbars

or

android:layout_height="wrap"
+5
source

Source: https://habr.com/ru/post/1732101/


All Articles