I want to implement multi select gesture in my app like in new Google Photos App here:
I have tried following this answer, but couldn't do this. Can anyone just guide me?
I want to implement multi select gesture in my app like in new Google Photos App here:
I have tried following this answer, but couldn't do this. Can anyone just guide me?
finally I found a library here. https://github.com/afollestad/drag-select-recyclerview.
Check out this small project here: https://github.com/serzhby/MultiselectGridViewSample. It's far from perfect, but I think the idea of implementation should be clear. You should change the code for your particular need.
The main idea is to use GridView
class as a base class. By overriding the onTouchEvent
method we can detect which element was selected. Further processing is pretty staightforward.
Feel free to ask if you have any questions.
finally I found a library here. https://github.com/afollestad/drag-select-recyclerview.
© 2022 - 2024 — McMap. All rights reserved.