yechaoa/MaterialDesign

tabLayout字体没有加粗

Opened this issue · 1 comments

ylmyg commented

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

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