请参阅android sdk目录。
在\platforms\android-X\data\res\values\themes.xml
:
<item name="textAppearanceLarge">@android:style/TextAppearance.Large</item>
<item name="textAppearanceMedium">@android:style/TextAppearance.Medium</item>
<item name="textAppearanceSmall">@android:style/TextAppearance.Small</item>
在\platforms\android-X\data\res\values\styles.xml
:
<style name="TextAppearance.Large">
<item name="android:textSize">22sp</item>
</style>
<style name="TextAppearance.Medium">
<item name="android:textSize">18sp</item>
</style>
<style name="TextAppearance.Small">
<item name="android:textSize">14sp</item>
<item name="android:textColor">?textColorSecondary</item>
</style>
TextAppearance.Large
意味着风格是从TextAppearance
风格继承,你必须追踪它,如果你还希望看到一个风格的完整定义。
链接:http://developer.android.com/design/style/typography.html
如果您使用的是产品的IntelliJ如Android Studio中,您将能够每当你按'机器人F1查看文档:textAppearanceValue'这会给你的尺寸sp/dp的值。 – androidtitan 2017-09-27 18:20:57