-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't scroll on RecyclerView when the item has click listener #160
Comments
Too little details, please provide a proper description with examples and explanation how RecyclerView items issue is related to this library. |
I'm using like this :
inside the recyclerview adapter, i have specific item that has onClickListener
i cant scroll the recycler from that inside specific item that has onclicklistener, but i can click on other item that doesnt has onclicklistener video sample : (the item that cant scroll is the one that has onclicklistener) |
I tried adding RecyclerView with buttons into GestureFrameLayout and it seems to handle both clicks and scrolling (started on a button) just fine. Note that there was a fix for nested scrolling in the latest version, do you use 2.6.0? If you still have the issue in v2.6.0 then I'll need exact code (e.g. a sample project) to reproduce it. |
I had the same issue too, using version 2.7.1 |
Can you reproduce the issue in the sample app? Or can you modify the sample app in the way that will showcase this issue? |
This is my case I just load a list of simple ImageView with RecyclerView, and I set a click listener to the ImageView and I can't even scroll the list. |
This is my code, maybe it could help. As I haven't had the time to look at the example. Activity
item layout View holder
} It's just a simple list actually. |
Yes, thanks, I can reproduce it now, not sure why I didn't see that myself. I did a quick research and it turns out that if Nested scrolling is complicated, Google added a lot of logic accross their widgets in the last several years to support it, but before that it wasn't really possible to nest widgets that can scroll in same direction. The solution now is to partly rewrite this library to implement all the APIs provided by Google to have a smooth nesting scroll. But that is a hell lot of work, so I doubt I will had a time to do that anytime soon. BTW, can you explain why do you need to nest |
Hi, thanks for the reply and the research. I'm building a comic reader app. It's just a list of images but it also needs to be zoomable. I tried it with zoomable feature per ImageView but the user experience looks weird, so I looked at another comic app (ex webtoon) and they were zoomable as a whole. So I'm thinking that it should be the RecyclerView that was zoomed. |
I cant scroll the specific item in RecyclerView if that item has click listener.
The text was updated successfully, but these errors were encountered: