Select multiple item by drag block them
Asked Answered
G

1

6

First, let me tell u that i am stressed out by this, because i don't even know the concept / method name, so i can't even search it in google as i don't know the keywords, but ill try my best to explain it. Feel free to modify my contents and title as you see fit.

what i want to achieve is this: i have view group contains many child views, or it can be GridView i want to able to block select some of it child views, and return the selected / blocked items.

pictures worth more than thousands words: enter image description here

any help is appreciated, thank you very much.

Galer answered 26/5, 2015 at 4:25 Comment(0)
B
0

I used the keyword "box select" to Google such feature.

I am not sure what is the specific implementation for Android, but there is plenty of implementation for web / browser, e.g. select.js

The gist is to loop through all "elements" and check whether the element falls into the the "box select" area.

Bionics answered 18/10, 2021 at 7:3 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.