How to Change Text Size for Android ActionBar

You can change ActionBar Title's text size by simply adding android:textSize attribute to the <style> that you have defined in the styles.xml file.

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
        <!-- set the size of action bar title . -->
        <item name="android:textSize">12sp</item>

Note that the <application> tag in AndroidManifest.xml has the theme set as the value of the name tag in style.xml. Also set the textSize value in sp unit.

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap