Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dot (.) instead of Swipe tab [closed]

i am implementing view pager and i want to put dot(.) in the bottom instead of swipe tab. how can i do that.Thanks for help

Instead of this

enter image description here

i want to do like this

enter image description here

like image 935
rupesh Avatar asked Jan 01 '14 06:01

rupesh


2 Answers

Jake Wharton provides a lot of examples. Have you check it?

And you can take a preview installing this APK.

like image 132
M D Avatar answered Oct 23 '22 01:10

M D


Stinepike's answer is more appropriate for tabs.
But I think what you are trying to achieve can be done by ViewPager and Its more appropriate way considering you don't want to display the names of tabs like "tab1", "tab2" etc... but only the indicators (dots, .) In that case use viewpagerindicator with ViewPager.
Using tabs names and indicator will be an overhead and not a proper design for an Android application.
Its an open source library
Follow the instructions from this page
https://github.com/JakeWharton/Android-ViewPagerIndicator/

like image 42
johntheripp3r Avatar answered Oct 23 '22 01:10

johntheripp3r