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

大佬,item文本多重颜色我应该怎么弄比较合适 #112

Open
fumayer opened this issue Sep 30, 2024 · 5 comments
Open

大佬,item文本多重颜色我应该怎么弄比较合适 #112

fumayer opened this issue Sep 30, 2024 · 5 comments

Comments

@fumayer
Copy link

fumayer commented Sep 30, 2024

WX20240930-175157@2x

外部能否用spannable改变TextView的颜色呢

@angcyo
Copy link
Owner

angcyo commented Sep 30, 2024

使用com.angcyo.tablayout.DslTabLayoutConfig#setTabGradientCallback属性, 自定义可以解决.

@fumayer
Copy link
Author

fumayer commented Sep 30, 2024

WX20240930-182759@2x
大佬,我这用法是不是有问题,颜色改变后,再切换一直是多重颜色,不变回未选中颜色了
WX20240930-183033@2x

@angcyo
Copy link
Owner

angcyo commented Sep 30, 2024

思路是对的

@angcyo
Copy link
Owner

angcyo commented Sep 30, 2024

方式方法可以变一下.

@fumayer
Copy link
Author

fumayer commented Oct 8, 2024

大佬,具体明示下呗,多谢多谢

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

2 participants