Muhammad Irfan
Muhammad Irfan

Reputation: 1457

How to increase height of custom ActionBar in android?

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

Upvotes: 2

Views: 5171

Answers (1)

Sasi Kumar
Sasi Kumar

Reputation: 13358

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"

Upvotes: 9

Related Questions