So here’s the thing, I want to build a GridView containing few items that are movable/rearrangeable by the user. Pretty much similiar as the one you’d see on the home screen of Android.
I’ve looked into some places but ended up with zero result. The closest thing I was able to find was the sample of a home screen app found on developers.android.com but It doesn’t have the thing I’m looking for (the items are unarrangeable).
Please give me a hint how this could be done. Code examples are also welcome.
Thanks in advance! 🙂
I think you should implement a
drag&drop.The
GridViewcan handle theOnDragListener, so you could do :myGridView.setOnDragListenerand do whatever you want with it.I also advise you to check the following link
I hope it helped!