jasonwyatt / AsyncListUtil-Example

Example implementation of AsyncListUtil for moving SQLite access off the UI thread with a RecyclerView.
The Unlicense
74 stars 10 forks source link

Is it possible to implement drag'n'drop with AsyncListUtil list? #2

Closed yetanothercoder closed 6 years ago

yetanothercoder commented 6 years ago

Hi, Jason

Thanks for kind of "reference" implementation for database list with AsyncListUtil. May be you investigate if it's possible to add kind of item drop and drop features for such list? or there may be already such implementations with AsyncListUtil?

p.s. checked SO, but didn't find any related: https://stackoverflow.com/questions/48550513/android-cursor-list-based-on-asynclistutil-with-drag-drop-support

jasonwyatt commented 6 years ago

You should be able to use an ItemTouchHelper for that type of behavior: https://medium.com/@ipaulpro/drag-and-swipe-with-recyclerview-b9456d2b1aaf

On Thu, Feb 1, 2018 at 3:14 PM, Mikhail Baturov notifications@github.com wrote:

Hi, Jason

Thanks for kind of "reference" implementation for database list with AsyncListUtil. May be you investigate if it's possible to add kind of item drop and drop features for such list? or there may be already such implementations with AsyncListUtil?

p.s. checked SO, but didn't find any related: https://stackoverflow.com/ questions/48550513/android-cursor-list-based-on- asynclistutil-with-drag-drop-support

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jasonwyatt/AsyncListUtil-Example/issues/2, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIRLnTSQwaAPN0t280B4Hu2HfkblCT6ks5tQikogaJpZM4R2Sw9 .

-- Jason Feinstein

yetanothercoder commented 6 years ago

@jasonwyatt thanks, I successfully integrated it, drag and swipe - work well.