The action bar logo turns into an application icon in the extended ActionView

I find quite a few obstacles styling 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.

Any ideas how to solve this?

+5
source share
2 answers

, , , , . , 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>
+8

, :

  • , . Android Asset Studio.
  • application , .
  • (, , ) ActionBar setIcon.

, # 3 "" , , ActionBar, , ( ) t ).

0

All Articles