EverythingMe / overscroll-decor

Android: iOS-like over-scrolling effect applicable over almost all scrollable Android views.
BSD 2-Clause "Simplified" License
2.85k stars 400 forks source link

Not working with click listeners #68

Open moisoni97 opened 5 years ago

moisoni97 commented 5 years ago

In ScrollView if you drag from an item with click listener attached it won't work.

ForgetAll commented 5 years ago

I have the same problem, I think it is better to over scroll the view when I just want to drag the ScrollView.

moisoni97 commented 4 years ago

Duplicate of #25 Use nested scroll view.

moisoni97 commented 4 years ago

Actually NestedScrollView didn't solve this problem. Bounce on ScrollView doesn't work if you try to drag from a view that has onClickListener attached to it. A strange thing I've noticed is that in Landscape Mode works normally, even with views with onClickListeners.

Does anyone know a workaround?

moisoni97 commented 4 years ago

Ok. The problem appears when there are not enough items in ScrollView to fill the entire visible layout (it depends on the phone screen size), so technically the ScrollView isn't scrollable because you don't have what to scroll. This is why it works in landscape mode because the screen height is smaller and items are filling the entire layout and beyond.