Change Nav Drawer icon on android side

1

I have an activity of type nav drawer, the menu always comes out of the left, I got it out of the right:

What I need is for the bars (the icon on the left) to move to the right and be able to change it for another image

    
asked by Lina Cortés 26.09.2016 в 23:33
source

2 answers

1

link

How about, there are 2 methods to set these 2 values .. how much the left icon (setNavigationIcon) and the right icon (setOverflowIcon), well I prefer to do it with java code, than with xml with styles ..

example:

toolbar.setNavigationIcon(R.drawable.ic_arrow_blue);
toolbar.setOverflowIcon(getResources().getDrawable(R.drawable.ic_navigation_more_vert));

as you see setNavigationIcon() receives the id of the drawable and setNavigationIcon receives a drawable

    
answered by 27.09.2016 в 01:02
-1

There is a way to change these values programmatically, I leave you a link of a similar example. I hope I can guide and help you a bit.

link

    
answered by 26.10.2016 в 13:46