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

tabLayout字体没有加粗 #4

Open
ylmyg opened this issue Oct 19, 2022 · 1 comment
Open

tabLayout字体没有加粗 #4

ylmyg opened this issue Oct 19, 2022 · 1 comment

Comments

@ylmyg
Copy link

ylmyg commented Oct 19, 2022

tab?.let {
val textView = it.view.getChildAt(1) as TextView
textView.typeface = Typeface.defaultFromStyle(if (it.isSelected) Typeface.BOLD else Typeface.NORMAL)
}
代码没有起作用,字体没有加粗

@yechaoa
Copy link
Owner

yechaoa commented Mar 6, 2023

这个项目clone下来跑的吗,系统版本多少呢

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