I do not want to use Tab
and therefore replaced the tabs on the ViewFlipper
. Navigation takes place on buttons horizontally aligned in a row. I need an indicator in the form of a strip under the button that will move under the pressed button. How to implement this? Create this View
in markup and programmatically move it? Or are there other options?
|
1 answer
ViewFlipper is good for slide navigation (read slide show, plus animation), and if you need to show and manage tabs, it’s better to use ViewPager as a more decent tab control option. Customization viewPager a whole bunch, first look at a separate project on the githaba . If you do not want to use the native tab control mechanism, then customize the button - create a layer (slightly larger buttons layout_margin: bottom = 3dp) on which you apply a button and when you click on this button, change its background. something like this
- Oh, that's all. ViewFlipper. I do not want to dance over the interface either. - Flippy
|