florent37 / MaterialViewPager

A Material Design ViewPager easy to use library
https://www.fiches-plateau-moto.fr
Apache License 2.0
8.13k stars 1.48k forks source link

The last tab item string not shown completely #20

Closed jinxk closed 9 years ago

jinxk commented 9 years ago

I am using most of the code from the sample except for my own tabs - This is how it's shown screenshot_2015-05-11-13-34-45 1

The tab should show the complete tab name "Borrowed" I also tried -

mViewPager.getPagerTitleStrip().setShouldExpand(true);

didn't work.

florent37 commented 9 years ago

You have to include you own tab layout, look at the PagerTitleStrip Readme https://github.com/jpardogo/PagerSlidingTabStrip

jinxk commented 9 years ago

Thanks! I set up a custom tab and had to change the padding (from your given example) to 16dp to get it to work.