我正在尝试按照此创建自己的文本外观
http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/
我只想要我的文本外观样式,它继承了@android:attr/textAppearanceSmall 的所有东西,除了它使用比 attr/textAppearanceSmall 更小的尺寸
所以我这样做了:
<resource>
<style name="MyDefaultTextAppearance" parent="@android:attr/textAppearanceSmall">
<item name="android:textSize">10sp</item>
</style>
</resources>
我的问题是平板电脑的 textAppearanceSmall 的 textSize 是多少?我只想为 textAppearanceSmall 使用小于 android 默认文本大小的大小。我不确定 textSize 10sp 是否是正确答案。
谢谢。
最佳答案
如果查看 SDK 文件夹,您会发现没有为平板电脑定义的单独的 TextAppearance
样式。我检查了 android-14
文件夹,但找不到用于 large
屏幕的单独条目。请自行搜索。您可以在 \android-sdk\platforms\android-14\data\res
关于android - 如何创建一个 TextAppearance 使用比@android :attr/textAppearanceSmall 更小的字体大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8070982/