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
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
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.