Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
In API level 29 and above, I used AppCompatTextView in the layout XML and set android:textFontWeight=900, but it didn't work. Using TextView also didn't work because the AppCompat theme casts TextView to AppCompatTextView. So, I used a CustomTextView that extends TextView, and in the layout XML, it worked.
please seehttps://github.com/androidx/androidx/pull/695 or https://github.com/simplepeng/FontWeightTextView