How to increase height of custom ActionBar in android?

5.1k views Asked by At

How can i increase height of android ActionBar? I am using custom actionbar from this link http://javatechig.com/android/actionbar-with-custom-view-example-in-android

and an image is attached also what i am looking for?

enter image description here

Thanks

1

There are 1 answers

3
sasikumar On

To change height of ActionBar you can create a new file themes.xml in your res/values folder:

<?xml version="1.0" encoding="utf-8"?>
<resources>   
<style name="Theme.FixedSize" parent="@android:style/Theme.Holo.Light.DarkActionBar">
    <item name="actionBarSize">48dip</item>
    <item name="android:actionBarSize">48dip</item> 
</style> 
</resources>

set this Theme to your Activity:

android:theme="@style/Theme.FixedSize"