Android:How to change the logo of Up navigation in Actionlayout -
the logo @ left in original actionbar not app icon. actionlayout added button.
<item android:id="@+id/action_search" android:orderincategory="100" android:showasaction="collapseactionview|always" android:title="@string/action_search" android:icon="@drawable/ic_search" android:actionlayout="@layout/search_layout"/>
but in case of button clicked, actionbar changed, , logo @ left, app icon in navigation. how make logo not changed?
through styles.xml following items
<style name="apptheme.actionbarstyle" parent="@style/widget.sherlock.actionbar.solid"> <item name="android:homeasupindicator">@drawable/home_up_drawable</item> <item name="homeasupindicator">@drawable/home_up_drawable</item> </style>
at runtime seticon()
. instance:
actionbar bar = getactionbar(); bar.seticon();
seticon
takes id of
resource or drawable
.
you can set android:logo
inside androidmanifest.xml
Comments
Post a Comment