android - 在 Android 中使用默认字体样式

标签 android text coding-style android-layout

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

我试过:

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

但是我得到:

error: Error: No resource found that matches the given name (at 'textAppearance' with value '@android:style/TextAppearance_Large').

最佳答案

不是吗

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

对于 TextView?

关于android - 在 Android 中使用默认字体样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3405161/

相关文章:

java - 在 Android Studio 中动态创建按钮时遇到问题

java - 获取一个国家的货币代码

android - 如何确定相机预览框的默认方向?

android - 如何实现这些水平滚动的卡片设计

android - 设置 Android 字符宽度

linux - 二进制文件中的 .bash_history

python - 从文本构建日期数组

php - 请在 PHP "use"中使用内部 php 类或反斜杠 "\"

c# - DataGridViewCell 边框颜色

c# - 窗口服务和 C# 设计模式问题