Search code examples
androidandroid-scrollbar

Android Scrollview thumview change


in application listview i had more than 1000 data in listview and its tedious to scroll. i try to change scroll thume but cannot change.i requre scroll thum like below image

<ListView
 android:id="@+id/listview"
 android:layout_width="fill_parent"
 android:layout_height="fill_parent"
 android:layout_below="@+id/layoutProduct"
 android:background="#00000000"
 android:cacheColorHint="#00000000"
 android:dividerHeight="1dp"
 android:fadeScrollbars="true"
 android:fadingEdge="none"
 android:scrollbarSize="10dp"
 android:scrollbarThumbVertical="@drawable/a_apptheme_fastscroll_thumb_holo"
 android:focusable="true"
 android:focusableInTouchMode="true"
 android:listSelector="#00000000"
 android:scrollingCache="false" >
 </ListView>

Thum Image

User can drag scrol thume


Solution

  • Call the setFastScrollEnabled(true); method on your ListView. http://developer.android.com/reference/android/widget/AbsListView.html#setFastScrollEnabled(boolean)