Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After adding this line of code, the error is reported #325

Open
WangXianSong opened this issue May 21, 2018 · 2 comments
Open

After adding this line of code, the error is reported #325

WangXianSong opened this issue May 21, 2018 · 2 comments

Comments

@WangXianSong
Copy link

WangXianSong commented May 21, 2018

app:pstsShouldExpand="true"

Error information :

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

@kevintanhongann
Copy link

Experienced this too. Any workarounds for this?

@yuantingyu
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants