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 862 forks source link

Drag in ScrollView #351

Closed polyak01 closed 7 years ago

polyak01 commented 7 years ago

Hi, I have a difficult Layout: several TextViews + grid RV + several TextViews + grid RV, so I need to use NestedScrollView/ScrollView for more comfortable use and scrolling up & down. But there arises one problem:

During DRAGGING I cann't to scroll my layout. It happened when I use RecyclerView in ScrollView.

How to solve this problem?

guisantogui commented 7 years ago

It's executing the recycler view scroll, you have to extend it and let the event go through scrollview.

Search for events interceptor's.

Le ven. 10 févr. 2017 14:59, Yaroslav Polyakov notifications@github.com a écrit :

Hi, I have a difficult Layout: several TextViews + grid RV + several TextViews + grid RV, so I need to use NestedScrollView/ScrollView for more comfortable use and scrolling up & down. But there arises one problem:

During DRAGGING I cann't to scroll my layout. It happened when I use RecyclerView in ScrollView.

How to solve this problem?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/h6ah4i/android-advancedrecyclerview/issues/351, or mute the thread https://github.com/notifications/unsubscribe-auth/ABIEIDoYoHwf97nDsnrJD5ftAAfXl8wPks5rbJeGgaJpZM4L9m9T .

--

Att,

Guilherme Souza

h6ah4i commented 7 years ago

@polyak01 Hi. I tweaked the library to support scrolling in NestedScrollView. Try the experimental branch code via JitPack:

repositories {
    maven { url "https://jitpack.io" }
}
dependencies {
    compile 'com.github.h6ah4i:android-advancedrecyclerview:af1e79578d4f841ea0013741f1e42e080e902b12'
}

Note that you have to disable nested scrolling by involing recyclerView.setNestedScrollingEnabled(false) to get effect. Thanks.

polyak01 commented 7 years ago

@h6ah4i Everything work perfectly!) thank you very much)))

h6ah4i commented 7 years ago

😄

h6ah4i commented 7 years ago

This feature has been merged and released as v0.10.4 now.