Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想TabWidget在 android 中创建一个自定义,我已经对选项卡的背景和选定的背景颜色进行了更改,但是我想textview在选择tab. 如何?
TabWidget
textview
tab
您可以像这样创建一个选择器并将其值分配给 TextView
<TextView .. ... .. android:textColor="@color/bright_text_dark_focused"/>