Open moisoni97 opened 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.
Duplicate of #25 Use nested scroll view.
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?
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.
In
ScrollView
if you drag from an item with click listener attached it won't work.