h6ah4i / android-advancedrecyclerview

RecyclerView extension library which provides advanced features. (ex. Google's Inbox app like swiping, Play Music app like drag and drop sorting)
https://advancedrecyclerview.h6ah4i.com/
Apache License 2.0
5.32k stars 860 forks source link

Drag and Drop inside NestedScrollView #460

Open OferRnz opened 6 years ago

OferRnz commented 6 years ago

Hi,

I understand that this should be available as of 0.10.4 (issue #351)

I'm trying to use this option. If I don't set setNestedScrollingEnabled(false), I get drag and drop inside the RecyclerView area without scrolling the NestedScrollView. This is expected.

However, if I do set setNestedScrollingEnabled(false), I don't get Drag and Drop at all. Just scroll of the NestedScrollView.

Please help. Thanks in advance.

OferRnz commented 6 years ago

Got it!

The default drag-start is by move. This does not work well when move actions are sent to the NestedScrollView.

Settings other options, e.g. setInitiateOnTouch(true) work well!

Excellent package. Thank you!

khambhaytajaydip commented 5 years ago

https://stackoverflow.com/a/56964370/7176189

android:descendantFocusability="blocksDescendants"

add in NestedScrollView and add

android:focusableInTouchMode="true"

in child layout follow the link for more info