I find quite a few obstacles styling ActionBar.
ActionBar
The problem I am facing now is the logo / icon when expanding ActionView. For some reason, it does not use the logo, which can be used here, but the application icon is available. I want this to either go away or set up on my own. I tried to set the icon directly in onMenuItemActionCollapse()using the setIcon() ActionBarno luck feature . I also tried to install a home and logo there.
ActionView
onMenuItemActionCollapse()
setIcon()
Any ideas how to solve this?
, , , , . , actionBarStyle icon. , :
actionBarStyle
icon
<style name="action_bar" parent="@android:style/Widget.ActionBar"> <item name="android:logo">@drawable/logo</item> <item name="android:icon">@drawable/logo</item> </style>
, :
application
setIcon
, # 3 "" , , ActionBar, , ( ) t ).