PagerSlidingTabStrip icon indicating copy to clipboard operation
PagerSlidingTabStrip copied to clipboard

After adding this line of code, the error is reported

Open WangXianSong opened this issue 7 years ago • 2 comments

app:pstsShouldExpand="true"

Error information :

Binary XML file line #20: Binary XML file line #20: Error inflating class com.astuetz.PagerSlidingTabStrip

WangXianSong avatar May 21 '18 07:05 WangXianSong

Experienced this too. Any workarounds for this?

kevintanhongann avatar Dec 01 '18 07:12 kevintanhongann

So do i,and some xml attribute can not work as papers said.such as app:pstsDividerColor="#0011dd" app:pstsIndicatorColor="#FFFFA500" app:pstsUnderlineColor="#1d1c1b" app:pstsUnderlineHeight="45dp" and so on.it seems like the attribute are not in their right position. Yours problem can be solved by add like this in MainActivity

     PagerSlidingTabStrip tabsStrip=(PagerSlidingTabStrip)findViewById(R.id.tabs);
    //把标题和页面联系起来
    tabsStrip.setShouldExpand(true);
    tabsStrip.setViewPager(viewPager);

yuantingyu avatar Dec 13 '18 03:12 yuantingyu