1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android ExpandableListView scrolling skips children

Discussion in 'Android Development' started by Dan Fumosa, Dec 5, 2018.

  1. Dan Fumosa

    Dan Fumosa Lurker
    Thread Starter

    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 (Text):
    1. <ExpandableListView
    2.     android:id="@+id/songListView"
    3.     android:layout_width="0dp"
    4.     android:layout_height="0dp"
    5.     android:layout_marginBottom="8dp"
    6.     android:layout_marginTop="8dp"
    7.     android:childDivider="#ffffff"
    8.     android:choiceMode="singleChoice"
    9.     android:divider="#ffffff"
    10.     android:dividerHeight="2dp"
    11.     android:fastScrollEnabled="true"
    12.     android:footerDividersEnabled="true"
    13.     android:groupIndicator="@null"
    14.     android:headerDividersEnabled="true"
    15.     app:layout_constraintBottom_toTopOf="@+id/bottomDivider"
    16.     app:layout_constraintLeft_toLeftOf="parent"
    17.     app:layout_constraintRight_toRightOf="parent"
    18.     app:layout_constraintTop_toBottomOf="@+id/topDivider"
    19.     tools:layout_constraintLeft_creator="1"
    20.     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!
     



    1. Download the Forums for Android™ app!


      Download

       
  2. Deleted User

    Deleted User Guest

    Are you using View recycling in your list adapter?
     
  3. Dan Fumosa

    Dan Fumosa Lurker
    Thread Starter

Loading...
Similar Threads - Android ExpandableListView scrolling
  1. Samsung
    Replies:
    0
    Views:
    82
  2. Luca Gatto
    Replies:
    1
    Views:
    133
  3. akasuki
    Replies:
    4
    Views:
    184
  4. mrop
    Replies:
    0
    Views:
    120
  5. nraptis
    Replies:
    2
    Views:
    168
  6. sukhreetsingh
    Replies:
    2
    Views:
    157
  7. Makineko
    Replies:
    4
    Views:
    203
  8. Allen Stilwell
    Replies:
    6
    Views:
    267
  9. SaiCoGames
    Replies:
    1
    Views:
    225
  10. AbbyUU
    Replies:
    2
    Views:
    226

Share This Page

Loading...