Skip to content

tabLayout字体没有加粗 #4

@ylmyg

Description

@ylmyg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions