I work with an action bar and I want to customize the logo of the action bar. To do this, I wrote the code (below), but it works for Samsung and MicroMax devices , but not for Lenovo K900 and Sony Ericssion Xperia z1 . What should I do?
Api 16 works, but not in 17 (4.2)
the code:
<style name="AppTheme" parent="AppBaseTheme">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:logo">@drawable/product_category_logo</item>
<item name="android:background">@drawable/actionbar_theme</item>
<item name="android:backgroundStacked">@color/black</item>
<item name="android:backgroundSplit">@color/white</item>
<item name="android:textColor">#000000</item>
<item name="android:textSize">16sp</item>
</style>
Values-v14 Folder:
<resources>
<style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
</style>
Value Folder-v11:
<resources>
<style name="AppBaseTheme" parent="android:Theme.Light">
</style>
Guy, I don’t know what to do. Please help me.
source
share