ontouch - Switching positions of two views(images) in Android
- by idish
I've been looking for that 2 days long and haven't found anything related to it.
I'll give an example for my goal. Let's say I have 2 images positioned side by side horizontally. I want the user to be able to switch their positions onlongtouch listener. so let's say that the first image was on the left and the second was on the right side, after switching positions between them, the first image would be in the right and the second would be on the left side.
Basically, it is just like in the launcher where you can switch apps positions.
Please, if anything is not clear for you, I would like to know, and I'll try to explain it better, thank you.