Search code examples
androidandroid-actionbarandroid-appcompatandroid-actionbar-compat

Problems with ActionBarDrawerToggle menu icon afer refreshing appcompat_v7


After refreshing appcompat_v7 i've needed to delete stroke with menu icon. And I am having back image in this place now!

mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,
        //  R.drawable.menu, // i was had to delete it
            R.string.app_name, // nav drawer open  
            R.string.app_name // nav drawer close 
    )

So how can I add menu icon now? Thnx


Solution

  • So, I've added

    getActivity().getActionBar().setDisplayShowHomeEnabled(true);
    

    in each fragment. Menu was shoown, but color was grey.

    I changed grey color to white by adding one stroke in my styles.xml

    <item name="android:textColorSecondary">@color/white</item>