-1

I am using android.support.v7.app.ActionBarDrawerToggle as package for ActionBarToggle and it has the constructor as

mDrawerToggle = new ActionBarDrawerToggle(
                this,
                mDrawerLayout,
                R.string.drawer_open,
                R.string.drawer_close)

How can I set the hamburger icon for toggle?

Qiu
  • 5,651
  • 10
  • 49
  • 56
pullarao
  • 1
  • 1

1 Answers1

0
mDrawerToggle = new ActionBarDrawerToggle(
            getActivity(),                    /* host Activity */
            mDrawerLayout,                    /* DrawerLayout object */
            R.drawable.yourIcon,             /* nav drawer image to replace 'Up' caret */
            R.string.navigation_drawer_open,  /* "open drawer" description for accessibility */
            R.string.navigation_drawer_close  /* "close drawer" description for accessibility */
    )
Ivano Donadi
  • 377
  • 1
  • 13