When should we use pagerTabStrip and when should we go for pagerTitleStrip???
What does the word interactive indicator and non-interactive indicator mean actually? Can you please explain me the difference and also can you please tell me if there is any difference in the UI?
PagerTitleStrip
is just a strip which contain title texts; it just indicates the title of the section we're in.
PagerTabStrip
is very similar to PagerTitleStrip
but actually looks like a strip of tabs (it's used in the Play store tabs, and looks better in my opinion).
You can use PagerTabStrip
if you are looking for a tab-like interface. If you are looking to customize PagerTitleStrip, you may want to see ViewPagerIndicator.
Its a old post, but I want to point some differences between PagerTabStrip
& PagerTitleStrip
.
PagerTabStrip
is interactive, means you can click on the tabs to switch between screens, which you cannot do that with PagerTitleStrip
.
PagerTabStrip
not only indicates the section name, but also has the tab indicator (bottom border) that depicts the active tab. On the contrary, PagerTitleStrip
only indicates the section we're in through the title names, but there is no tab indicator.
Going through the docs, you will notice there are more public methods for PagerTabStrip
compared to PagerTitleStrip
. Example: setTabIndicatorColor()
to set the tab indicator programmatically.
Also as mentioned by @BinoyBabu, plugin ViewPagerIndicator allows to customize your pager strip in so many ways.
@Binoy Babu answer added every details about PaterTitleStrip
and PagerTabStrip
. I think to add image for example.
Reference link : http://blog.csdn.net/harvic880925/article/details/38521865
Above are PagerTitleStrip
example, in which only title will scroll with page scrolling. This do not indicate which page you are currently displaying
Above is example of PagerTabStrip
which is same to PagerTitleStrip
except it indicates which page is displaying now. The current visible tab title is underlined
Thank you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With