What are the default font characteristics in Android ? What are the default font characteristics in Android ? android android

What are the default font characteristics in Android ?


You can check the default style of the widgets here: android/res/values/styles.xml

Then, looking for Textview you reach

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

and after researching a little bit, you find out that this appearance is defined in the same styles.xml file

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

where

<item name="textColorSecondary">@android:color/secondary_text_dark</item>

these colors are defined in /res/color/, check /res/color/secondary_text_dark.xml

Bookmarking the android/res/values folder is a must!

Update: my old links are broken, check Android core resources folder on Github. Thanks to kreker for the link.


For the newer 4.0 ICS etc there's the Android design pages which shows a list of font sizes:

http://developer.android.com/design/style/typography.html

All specified as 'sp' units

HTH