android - How to change action bar tab view height -


how customize action bar tab view have desired height..?

i want output action bar tabs enter image description here

but getting output this

enter image description here

i using custom view on tabview setting custom view

how change height of tab view manually?

you can use actionbar.getheight() height.

and set specific height can do:

first create new theme

    <?xml version="1.0" encoding="utf-8"?> <resources>        <style name="theme.fixedsize" parent="theme.sherlock.light.darkactionbar">         <item name="actionbarsize">48dip</item>         <item name="android:actionbarsize">48dip</item>      </style>   </resources> 

then set theme activity

android:theme="@style/theme.fixedsize" 

update:

<style name="yourtheme" parent="@android:style/theme.holo">     <item name="android:actionbartabstyle">@style/tab_nav</item>     <item name="android:actionbartabtextstyle">@style/tab_nav_text</item>     <item name="android:actionbarsize">85dp</item> </style> 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -