florent37 / MaterialViewPager

A Material Design ViewPager easy to use library

Home Page:https://www.fiches-plateau-moto.fr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add more tabs?

opened this issue · comments

Be default there are 4 tabs. I want to add more. How to do that?

the implementation of int getCount() of class FragmentStatePagerAdapter will decide the number of tabs. The implementation in sample is returning 4, that's why the default number of tabs are 4. You have to modify it according to your needs