默认&QUOT的dpi值;大","中"和"小"文本视图机器人 [英] dpi value of default "large", "medium" and "small" text views android

查看:159
本文介绍了默认&QUOT的dpi值;大","中"和"小"文本视图机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问文件(或任何人)谈到了默认的DPI值

Does the documentation ( or anyone) talks about the dpi values of the default

  • 在大的TextView {安卓textAppearance =机器人:ATTR / textAppearanceLarge}
  • 中的TextView { Android的:机器人:ATTR / textAppearanceMediumtextAppearance = }
  • 小的TextView {安卓textAppearance =机器人:ATTR / textAppearanceSmall}
  • Large TextView {android:textAppearance="?android:attr/textAppearanceLarge"}
  • Medium TextView {android:textAppearance="?android:attr/textAppearanceMedium"}
  • Small TextView { android:textAppearance="?android:attr/textAppearanceSmall"}

在SDK窗口小部件?

要把它以另一种方式,我们可以复制这些文本视图的外观,而无需使用安卓?textAppearance 属性

To put it in another way, can we replicate the appearance of these text views without using the android:textAppearance attribute?

推荐答案

请参阅在Android SDK目录。

See in the android sdk directory.

\平台\ android的-X \ DATA \水库\值\的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>

\平台\ android的-X \ DATA \水库\值\ 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 风格的继承,你必须跟踪它也是,如果你想看到一个风格的完整定义。

TextAppearance.Large means style is inheriting from TextAppearance style, you have to trace it also if you want to see full definition of a style.

链接:<一href="http://developer.android.com/design/style/typography.html">http://developer.android.com/design/style/typography.html

这篇关于默认&QUOT的dpi值;大&QUOT;,&QUOT;中&QUOT;和&QUOT;小&QUOT;文本视图机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆