• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android ExpandableListView scrolling skips children

Dan Fumosa

Lurker
I have an ExpandableListView in Android and have an issue with the scrollbar. I'll do my best to explain the problem. For starters, scrolling normally by swiping the screen works fine. The problem is when I grab the scrollbar on the right to scroll quickly. If I have a parent expanded that is large and takes up several screens, grabbing the scrollbar and pulling down skips the children just jumps to the next parent.

The best way to see the issue is if I have one parent with lets say 100 children. Grabbing the scrollbar in this case would jump from the top of the list to the bottom and not scroll through each children. Below is the XML for my list.

Code:
<ExpandableListView
    android:id="@+id/songListView"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:layout_marginBottom="8dp"
    android:layout_marginTop="8dp"
    android:childDivider="#ffffff"
    android:choiceMode="singleChoice"
    android:divider="#ffffff"
    android:dividerHeight="2dp"
    android:fastScrollEnabled="true"
    android:footerDividersEnabled="true"
    android:groupIndicator="@null"
    android:headerDividersEnabled="true"
    app:layout_constraintBottom_toTopOf="@+id/bottomDivider"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/topDivider"
    tools:layout_constraintLeft_creator="1"
    tools:listitem="@layout/songlistrow" />

Does anyone have any solution to this or please let me know if I need to be more clear with the description. Thanks in advance for the assistance!
 
Back
Top Bottom