2014-07-02 14 views
1

我使用分鐘API 14我想減少操作欄的高度如何更改Android中Action欄的高度?

碼,我用

<style name="MyTheme" parent="@android:style/Theme.Holo.Light"> 
    <item name="android:actionBarStyle">@style/MyActionBar</item> 
</style> 

<style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar"> 
    <item name="android:background">#fe9900</item> 
    <item name="android:actionBarSize">20dp</item>   
</style> 

安卓actionBarSize沒有與API 14 工作也用

<item name="android:height">30dp</item>

但無法正常工作 請幫我解決這個問題

回答

1

它會幫助你

< 
style name="thin_ab_style" parent="android:Widget.Holo.ActionBar"> 

< 
item name="android:height">30dp</item> 

< 
/style> 
+0

它不工作。 –

+0

使其工作我添加了android:theme =「@ style/MyTheme」到我的AndroidManifest文件中。 –