Tushar
Tushar

Reputation: 5935

Regarding implementing swipe in android application

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

Answers (2)

Lalit Poptani
Lalit Poptani

Reputation: 67286

Here is a nice sample example for you.

Example of Gallery 1

Example of Gallery 2

Upvotes: 0

Ricky
Ricky

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

Related Questions