Reputation: 639
I've decompiled the WhatsApp.apk and I want to change the height of the action-bar. WhatsApp uses Action-Bar-Sherlock, but when I change the value for the actionBarSize, it doesnt change something. In Eclipse the Text inside the Action-Bar gets bigger, but the actionbar itself stays on the same size. When i re-compile it to the APK and install it on my HTC One (4.7" 1080x1920) it doesnt even change the text-size.
Did I miss something? How can I change the height of the action bar?
Upvotes: 0
Views: 272
Reputation: 4377
Create style like this-
<style name="Theme.MyAppTheme" parent="Theme.Sherlock.Light">
<item name="android:actionBarStyle">@style/Theme.MyAppTheme.ActionBar</item>
<item name="actionBarStyle">@style/Theme.MyAppTheme.ActionBar</item>
</style>
<style name="Theme.MyAppTheme.ActionBar" parent="Widget.Sherlock.ActionBar">
<item name="android:background">#222222</item>
<item name = "background">#222222</item>
<item name="android:height">64dip</item>
<item name="height">64dip</item>
<item name="android:titleTextStyle">@style/Theme.MyAppTheme.ActionBar.TitleTextStyle</item>
<item name="titleTextStyle">@style/Theme.MyAppTheme.ActionBar.TitleTextStyle</item>
</style>
<style name="Theme.MyAppTheme.ActionBar.TitleTextStyle" parent="TextAppearance.Sherlock.Widget.ActionBar.Title">
<item name="android:textColor">#fff</item>
<item name="textColor">#fff</item>
<item name="android:textStyle">bold</item>
<item name="textStyle">bold</item>
<item name="android:textSize">32sp</item>
<item name="textSize">32sp</item>
</style>
Change height according to your requirement.
And In manifest use android:theme="@style/Theme.MyAppTheme"
Upvotes: 1
Reputation: 139
Try to use this one:
<style name="Theme.white_style" parent="@android:style/Theme.Holo.Light.DarkActionBar">
<item name="android:actionBarSize">55dp</item>
<item name="actionBarSize">55dp</item>
</style>
Upvotes: 0