我是一名安卓开发者。TextView和EditText可用于在活动中显示文本。在安卓中,文字的默认字体格式是什么样式的?例如TimesNewRoman...
这个样式是:?android:attr/textAppearanceSmall
我是一名安卓开发者。TextView和EditText可用于在活动中显示文本。在安卓中,文字的默认字体格式是什么样式的?例如TimesNewRoman...
这个样式是:?android:attr/textAppearanceSmall
这是Roboto字体的normal
版本。尝试使用xml android:textStyle=""
。
默认有三个取值:粗体(bold)、斜体(italic)和正常(normal)。
https://raw.github.com/android/platform_frameworks_base/master/core/res/res/values/styles.xml
如果你搜索 TextView,你可能会看到这个。<style name="Widget.TextView">
<item name="android:textAppearance">android:attr/textAppearanceSmall</item>
</style>
<style name="TextAppearance.Small">
<item name="android:textSize">14sp</item>
<item name="android:textStyle">normal</item>
<item name="android:textColor">?textColorSecondary</item>
</style>
Helvetica
和Helvetica Neue
字体。 - Kyryl Zotov