What is the Default ActionBar Title Font Size?

aimango picture aimango · Feb 3, 2012 · Viewed 72.2k times · Source

Seems to be 17dip. Just want to confirm it if anyone knows the exact size.

Answer

Renaud picture Renaud · Feb 3, 2012

The short one…

$ grep ActionBar platforms/android-11/data/res/values/* leads to

styles.xml:

<style name="TextAppearance.Widget.ActionBar.Title"
       parent="@android:style/TextAppearance.Medium">
</style>

<style name="TextAppearance.Widget.ActionBar.Subtitle"
       parent="@android:style/TextAppearance.Small">
</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>