2

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

Muhammad Irfan
  • 1,447
  • 4
  • 26
  • 56

1 Answers1

9

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"
sasikumar
  • 12,540
  • 3
  • 28
  • 48