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').

Was it helpful?

Solution

Isn't it

android:textAppearance="?android:attr/textAppearanceLarge"

for a TextView?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top