문제

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

도움이 되었습니까?

해결책

Isn't it

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

for a TextView?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top