florent37 / ExpansionPanel

Android - Expansion panels contain creation flows and allow lightweight editing of an element.
https://material.io/guidelines/components/expansion-panels.html
Apache License 2.0
1.98k stars 239 forks source link

Lagging/Skipping animation in large RecyclerView list #36

Open csaq7151 opened 5 years ago

csaq7151 commented 5 years ago

Hi, Im using the ExpansionPanel as ItemView for my rows in a RecyclerView. (ITem view = ImageView and text in the header --- some textviews and some buttons in the expansionLayout)

Everything works quite smooth if the recycler is smaller than 20 items. If the size of the recycler is bigger (tested with around 70 items) it creates a heavy lagging and freezes the UI until the expanding animation is done. Unfortunately it is unusable if this behaves so slow.

If I remove the Expansion Panel and change only the visibility of the expansionView it is working very smooth. So I came to the point that not my images or the content is causing the lag but the library.

Any idea how to fix it ?

etman55 commented 5 years ago

did you found a solution for this? cuz i am stuck here too

csaq7151 commented 5 years ago

@etman55 no unfortunately not. I ended up using native recycler as provided by android and implementing an expanding layout myself. The result is super smooth .

bhavin1994 commented 4 years ago

I'm facing same problem. Did you find any solution?