chuross / expandable-layout

http://qiita.com/chuross/items/81328feff73f55f9022e
Apache License 2.0
61 stars 16 forks source link

weird scrolling on creating view #1

Closed kibotu closed 6 years ago

kibotu commented 6 years ago

i have a recyclerview that contains a list of expandable-layouts which contain each another recyclerview

and when i create the fragment it scrolls automatically:

https://imgur.com/9l0nZZK

i have set the recyclerviews to fixed size and removed all animators/animations still this happens

weirdly it happens only in release builds, in debug builds everything works perfectly fine, i'm using latest support library 27.1.0, build tools 27.0.3, gradle build tools 3.1.0, kotlin 1.2.31

any idea how i can fix this?

any help is highly appreciated

chuross commented 6 years ago

Do you have any example code? I'll check it, and fix this issue.

thank you. 👍

kibotu commented 6 years ago

yea i'll prepare something next week, thanks for looking into it

kibotu commented 6 years ago

was resolved by adding the following to the recyclerview:

  android:descendantFocusability="blocksDescendants"

(sauce: https://stackoverflow.com/a/40492486/1006741)