astuetz / PagerSlidingTabStrip

An interactive indicator to navigate between the different pages of a ViewPager
139 stars 44 forks source link

setViewPager(pager) NullpointerException #160

Open kenny0202 opened 9 years ago

kenny0202 commented 9 years ago

First of all, nice work on your library.

I am currently having some issues with PagerSlidingTabStrip.setViewPager(ViewPager);

on my FragmentPagerAdapter class I have overrided getPageTitle, getCount and getItem methods and no errors have appeared. back on the class with the pagerslidingtabstrip

i have setAdapter to the corresponding FragmentPagerAdapter class as well as the setViewPager method.

I still keep getting errors on the method setViewPager.

qianlvable commented 9 years ago

you can override "getPageTitle" this method in your adapter.That will solved your problem