So I get and change the font itself in ActionBar

actionBar = getSupportActionBar(); SpannableString s = new SpannableString(getTitle()); s.setSpan(new TypefaceSpan(this, "Dolores.otf"), 0, s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); actionBar.setTitle(s); 

How to change the font size?

    1 answer 1

    You can do this, but do not, as the font size is standardized (which corresponds to the guidelines).

    If you still want to change the font size, then you can use a customized custom theme or, perhaps, implement the ActionBar fork (as is done here ).

    Option with styles and themes:

     <style name="AppTheme" parent="android:style/Theme.Holo.Light"> <!-- Customize your theme here. --> <item name="android:actionBarStyle">@style/MyActionBar</item> </style> <!-- ActionBar styles --> <style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse"> <item name="android:background">#FF0000</item> <item name="android:titleTextStyle">@style/titleStyle</item> </style> <!-- ActionBar title styles --> <style name="titleStyle"> <item name="android:textColor">#FFFFFF</item> <item name="android:textSize">15sp</item> </style> 
    • understood, thanks - Natalia_MI