简体   繁体   English

在Android中使用默认字体样式

[英]Using default font styles in Android

How do you use the Android default font sizes in xml? 你如何在xml中使用Android默认字体大小?

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'). 错误:错误:找不到与给定名称匹配的资源(在'textAppearance'处,值为'@ android:style / TextAppearance_Large')。

Isn't it 不是吗

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

for a TextView? 对于TextView?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM