Using default font styles in Android
-
25-09-2019 - |
Question
How do you use the Android default font sizes in xml?
I tried:
android:textAppearance="@android:style/TextAppearance_Large"
But I get:
error: Error: No resource found that matches the given name (at 'textAppearance' with value '@android:style/TextAppearance_Large').
Solution
Isn't it
android:textAppearance="?android:attr/textAppearanceLarge"
for a TextView?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow