Skip to content
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

Grab ExpandableDraggableItemAdapter type of Recyclerview into normal Recyclerview, then it can not drag items #505

Open
MaoTouWang opened this issue Jan 12, 2020 · 0 comments

Comments

@MaoTouWang
Copy link

I use a ExpandableDraggableItemAdapter to create a Recyclerview to be able to drag and expand group item on my main view. It works fine. But i put this expandableDraggable Recyclerview into another normal Recyclerview. The normal Recyclerview adapter is to extend RecyclerView.Adapter. Then my expandableDraggable recyclerview can not drag anymore, only can expand. The reason i need to use normal recyclerview to grab expandableDraggable recyclerview is that i have another DraggableItemAdapter recyclerview is on the bottom of expandableDraggable recycleview. both two need to swap position flexibly. Can anyone give me a hint or tips there is possible to use expandableDraggable advanced recyclerview inside another recyclerview?

main_layout.xml

<androidx.recyclerview.widget.RecyclerView
    android:id="@+id/normal_recycler_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

normal_recycler_item.xml

<androidx.recyclerview.widget.RecyclerView
    android:id="@+id/expand_drag_recycler_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:clipChildren="false"
    android:clipToPadding="false"
    android:scrollbars="vertical"
    android:scrollbarStyle="outsideOverlay"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant