ogaclejapan / SmartTabLayout

A custom ViewPager title strip which gives continuous feedback to the user when scrolling
Apache License 2.0
7.09k stars 1.34k forks source link

hi ,please how to choose default tab ? #216

Open i91h1r opened 7 years ago

i91h1r commented 7 years ago

if I want to default tab 2 or tab 3 ,how can I do ? think you

maojunjun commented 7 years ago

Have you solved the problem already? how to make default selection enabled?

maojunjun commented 7 years ago

After searching for a while,I didn't find the method to make default select available by useing SmartTabLayout instance,but I achived it by method defined viewPager.setCurrentItem(index,true); in ViewPager,maybe it's helpful for you!

iielse commented 7 years ago

+1