rubensousa / DpadRecyclerView

A RecyclerView built for Android TV with Compose in mind and as a replacement for Leanback's BaseGridView.
https://rubensousa.github.io/DpadRecyclerView/
Apache License 2.0
137 stars 17 forks source link

focus item scroll unfriendly when itemCount less then the screen length #160

Closed Nicky-Li closed 1 year ago

Nicky-Li commented 1 year ago

In horizontal state, when i change the number (the fun generateList() in class ListViewModel ) is less than the screen length(such like 5), the focus item scroll unfriendly

rubensousa commented 1 year ago

Hi @Nicky-Li. Can you please explain in more detail what do you mean? Also a screen recording would help me understand better

Nicky-Li commented 1 year ago

i mean change the value(the fun generateList() in class ListViewModel ) in your demo app. demo

rubensousa commented 1 year ago

Hi @Nicky-Li. Thanks for the example. I see the problem now. Will address this in the upcoming version.

Please note this only happens if you set the parent alignment edge to max. So you can fix this by using min_max instead as a workaround for now, which should behave fine.

rubensousa commented 1 year ago

@Nicky-Li The fix is available in 1.1.0-beta01