anujprashar
anujprashar

Reputation: 6335

Android home screen like navigation in view flipper

I am using ViewFlipper to navigate between screens. Each screen has 4 images in a grid. How to have similar functionality that is present on android home screen and application menu screen where user can quickly navigate to a page by pressing circle shaped buttons on top of screen. What I should use to have this effect? Thanks in advance.

enter image description here

Upvotes: 2

Views: 7554

Answers (2)

louielouie
louielouie

Reputation: 14941

I would switch to using a ViewPager, available in the Compatibility Library: http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html

Then you can use the ViewPagerIndicator library to achieve the effect that you're looking for (as well as giving you the choice of other styles of indicators): https://github.com/JakeWharton/Android-ViewPagerIndicator

ViewPagerIndicator sample gallery

Upvotes: 3

Paresh Mayani
Paresh Mayani

Reputation: 128428

Here is the example code: Circle Flow Indicator

Using this you will get output:

enter image description here

Upvotes: 3

Related Questions