android中的默认文本字体格式样式

时间:2015-09-17 10:08:47

标签: android

我是Android开发人员。允许TextView和EditText显示活动中的文本。 android中的默认文本字体格式是什么?像TimesNewRoman ......

从这种风格:?android:attr / textAppearanceSmall

2 个答案:

答案 0 :(得分:1)

是Roboto normal。试用xml android:textStyle=""

有3个默认值:粗体,斜体,正常。

答案 1 :(得分:1)

您可以从以下链接

清楚了解小部件的默认样式

https://raw.github.com/android/platform_frameworks_base/master/core/res/res/values/styles.xml

如果你搜索文本视图,你可能最终会看到这个

<style name="Widget.TextView">    
     <item name="android:textAppearance">android:attr/textAppearanceSmall</item>    
</style>

“textAppearanceSmall”是在同一文件中定义的主题

<style name="TextAppearance.Small">    
   <item name="android:textSize">14sp</item>    
   <item name="android:textStyle">normal</item>    
   <item name="android:textColor">?textColorSecondary</item>    
</style>

希望这有帮助。

相关问题