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

等分时,怎样设置指示器宽度等于文字宽度 #31

Closed
liu-xinhui opened this issue Dec 15, 2020 · 2 comments
Closed

等分时,怎样设置指示器宽度等于文字宽度 #31

liu-xinhui opened this issue Dec 15, 2020 · 2 comments

Comments

@liu-xinhui
Copy link

image
image
现在底部指示线宽度等于文本框宽度了,我想要等于文字宽度

@angcyo
Copy link
Owner

angcyo commented Feb 20, 2021

1:指示器的宽度使用'wrap_content'
2:item中的textViewViewGroup包裹一层
3:使用tab_indicator_content_index属性定位textView

@angcyo angcyo closed this as completed Feb 20, 2021
@NicodeLee
Copy link

每一层item包裹一层挺麻烦的

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