Change Height of Android ActionBar


To change the Height of Android ActionBar,

1. Go to style.xml under values folder.

style.xml
<resources>

    <!-- Base application theme. -->
    <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">

        <!-- set the height of Action Bar . -->
        <item name="actionBarSize">36dip</item>

    </style>

</resources>

2. Now, add <item name="actionBarSize">36dip</item>

3. Go to AndroidManifest.xml and within <application> check that android:theme is set as name-value in style tag ( AppTheme in my case)

Change Height of Android ActionBar.png
Change Height of Android ActionBar.png



Recent Posts:




Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.