Reputation: 5935
I am developing an android application game in which I have to implement swipe. User swipes from left to right and then he selects particular image which is shown. I have tried googling it, but couldn't find something useful that has helped me,
The image is
http://www.imagehousing.com/image/839095
If anyone has implemented it before, can he guide me
Thanks in advance Tushar
Upvotes: 0
Views: 356
Reputation: 7879
It seems you're after the gallery? It looks like it should do exactly what you want. The gallery handles all this functionality for you.
You can handle any onClick functionality like so, using setOnItemClickListener
:
mGallery.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View v,
int position, long id) {
});
Upvotes: 1