I have a ListView
with over 1,000 items and a scrollbar. When scrolling without using the scrollbar, the scrollbar does not scroll smoothly. Instead it initially goes in the direction you expect it to, then jumps backwards. While scrolling, it jumps backwards several times, instead of scrolling through the list smoothly. In my XML layout for the ListView
, I have specified android:smoothScrollbar="false"
as an attempt to remedy this. documentation. However, the issue still persists. All of my items are of the same height. How can I get my scrollbar to scroll smoothly?
Here is my XML
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="8dp"
android:paddingRight="8dp">
<ListView
android:id="@id/android:list"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fastScrollEnabled="true"/>
<TextView
android:id="@id/android:empty"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:text="@string/no_songs_found"
android:textColor="@color/asbestos"
android:textSize="24sp"
android:gravity="center"/>
</FrameLayout>