Search code examples
androidandroid-actionbarandroid-actionbar-compatdrawertoggle

Drawer Indicator on ActionBar compat v7 21


My application uses ActionBarCompat library as well as the NavigationDrawer support library. I use ActionBarDrawerToggle appcompat v7 to get the drawer. There are a custom search view on ActionBar. Like this:

enter image description here

But the drawer indicator shows wrongly, doesn't show the Back Arrow when action search view is expanded; enter image description here

I want it to show like PlayStore application:

enter image description here

How can I do it? Thanks in advance.


Solution

  • You got that issue because you set (android:)homeAsUpIndicator in your theme. Remove that attribute will solve your problem.