Capiono
Capiono

Reputation: 220

How to flip through pictures by swiping your figures across the screen in android?

Can someone please tell me how do I create the android phone style picture view in the gallery. That is, when you click on a picture, it pops up as a full screen and you can swipe your finger across the screen and flip through the other pictures in the folder.

How do you create that particular view?

Upvotes: 2

Views: 710

Answers (2)

Matt Colliss
Matt Colliss

Reputation: 1414

You can use a ViewFlipper to easily switch between different child views and you can use a GestureDetector to detect the swipe gesture.

Upvotes: 6

Anthony Graglia
Anthony Graglia

Reputation: 5435

Override the gallery adapter with a base adapter which has this behavior.

Upvotes: 0

Related Questions