How to create TextAppearance uses a smaller font size than @android: attr / textAppearanceSmall

I try to create my own look by following this

http://brainflush.wordpress.com/2009/03/15/understanding-android-themes-and-styles/

I just need the look and feel of the text that all @android inherits: attr / textAppearanceSmall, except it uses a smaller size than attr / textAppearanceSmall

So, I did this:

<resource> <style name="MyDefaultTextAppearance" parent="@android:attr/textAppearanceSmall"> <item name="android:textSize">10sp</item> </style> </resources> 

My question is what is textSize for textAppearanceSmall for tablet? I just want to use a size smaller than the default text size for Android, for textAppearanceSmall. I am not sure if textSize 10sp is correct.

Thanks.

+4
source share
1 answer

If you browse the SDK folder, you may find that there is no separate TextAppearance style for tablets. I checked the android-14 folder, but could not find individual entries for large screens. Please search for yourself. Resources can be found in \android-sdk\platforms\android-14\data\res

0
source

Source: https://habr.com/ru/post/1380448/


All Articles