Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrollbars not showing on ListView?

Tags:

android

I have a standard ListView. It's not displaying the scrollbar track thumb though. Is there some special setting you need to set in order to show the scrollbars? My definition looks like this:

<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>

The listview has data, and it has enough items to scroll.

Thanks

like image 898
user246114 Avatar asked Dec 13 '25 12:12

user246114


1 Answers

Try either including:

android:scrollbars="vertical"

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

or:

android:layout_height="wrap"
like image 189
Scott Smith Avatar answered Dec 16 '25 09:12

Scott Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!