您如何在XML中使用Android默认字体大小?

我尝试:

android:textAppearance="@android:style/TextAppearance_Large"

但我得到:

  

错误:错误:否资源发现   匹配给定的名称(在   “textAppearance”与值   '@android:风格/ TextAppearance_Large')

有帮助吗?

解决方案

是不是

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

有一个TextView?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top