3

I am using a ViewPager in which I am able to have 3 PagerTabStrip. But I want to have more than 3, maybe 4 or 5. I tried using setTextSpacing() but that didn't work. There is no direct option also to have some a some amount of PaperTitleStrip.

Any Suggestions how can we implement the same.

Vaibs
  • 1,128
  • 3
  • 16
  • 36

1 Answers1

0

This is what javadoc says:

PagerTabStrip is an interactive indicator of the current, next, and previous pages of a ViewPager.

But if you are still in doubts see sources: PagerTabStrip.java and its base class PagerTitleStrip.java and will see:

public class PagerTitleStrip extends ViewGroup implements iewPager.Decor {
    private static final String TAG = "PagerTitleStrip";

    ViewPager mPager;
    TextView mPrevText;
    TextView mCurrText;
    TextView mNextText;

Which means: there are only three strips: prev, current and next.

tomrozb
  • 25,773
  • 31
  • 101
  • 122
pskink
  • 23,874
  • 6
  • 66
  • 77