Skip to content Skip to sidebar Skip to footer

Change Viewpagerindicator To Icon, Not Text

I'm using the following library: https://github.com/JakeWharton/Android-ViewPagerIndicator to set a ViewPagerIndicator(TitlePageIndicator) TitlePageIndicator titleIndicator = (Tit

Solution 1:

Take a look at the FixedIconTabs example from the ViewPageExtensions project 1. Is that what you want ?

1 - https://github.com/astuetz/ViewPagerExtensions

Edit - Adding a pic

Pager with icons

Solution 2:

I downloaded the ViewPagerIndicator Library and the Samples project. There's a sample FragmentActivity called SampleTabsWithIcons that, as you'd guess, uses icons in the tabs (also text, though I'm pretty sure it could use just icons). Now, you indicated that you're trying to make titles use icons, not tabs, though, so I don't know if this is helpful. I'm not that familiar with ViewPage, and the difference between titles and tabs is not obvious to me, but if you really need icons for titles, not tabs, then this may not help. Below is a screenshot from the "Tabs with Icons" screen in the app on my phone.

enter image description here

Post a Comment for "Change Viewpagerindicator To Icon, Not Text"