henryblue / TvRecyclerView

A custom RecyclerView for Android TV end
Apache License 2.0
7 stars 4 forks source link

Do you have support for Drag and Drop? #9

Open mew22 opened 6 years ago

mew22 commented 6 years ago

Hello, Thanks for your implementation. Do you have support for Drag and Drop? In basic recyclerview, it has support by extending ItemTouchHelper.Callback, but on TV touch event doesn't really exist ..

BR, Sebastien

henryblue commented 6 years ago

Thanks, TvRecyclerView is based on TV and does not support drag and drop. You can do this with the adapter.notifyxxxx method, but you need to handle the focus problem specifically. I'm also thinking about how to implement drag and drop on the TV, through the remote control

mew22 commented 6 years ago

Yes me too, that's the point I need. I will take a look at ItemTouchHelper.Callback.startDrag method but I think you are right about using adapter.notifyxxx.

BR, Sebastien

mew22 commented 6 years ago

I see that open source TvApp use recyclerview for their menu, I will use it for my project.