MultiSelect gesture like Google Photos app
Asked Answered
K

2

18

I want to implement multi select gesture in my app like in new Google Photos App here:

enter image description here

I have tried following this answer, but couldn't do this. Can anyone just guide me?

Kith answered 12/7, 2015 at 13:56 Comment(0)
K
8

finally I found a library here. https://github.com/afollestad/drag-select-recyclerview.

Kith answered 27/10, 2015 at 4:30 Comment(0)
O
8

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.

Ormond answered 4/9, 2015 at 9:26 Comment(0)
K
8

finally I found a library here. https://github.com/afollestad/drag-select-recyclerview.

Kith answered 27/10, 2015 at 4:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.