简体   繁体   中英

Changing Navigation drawer hamburger icon when drawer is right side

I know how I can change the drawer icon if its in the left side, but I didn't find any solution for changing navigation drawer burger icon if the drawer is at right side. Any help can be appreciated.

Try this:

getSupportActionBar().setHomeButtonEnabled(true);
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
getSupportActionBar().setHomeAsUpIndicator(R.drawable.dashboardicon);//your icon

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM