Reputation: 6335
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.
Upvotes: 2
Views: 7554
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
Upvotes: 3
Reputation: 128428
Here is the example code: Circle Flow Indicator
Using this you will get output:
Upvotes: 3