Samad
Samad

Reputation: 1842

how to move actionbar home icon to Right side?

I,m using appcompat actionbar, I have moved navigation drawer to right side but the home icon still in the left side , how can I move it to Right side?!

Update:

enter image description here

Upvotes: 1

Views: 2642

Answers (1)

Zer0
Zer0

Reputation: 1022

I don't necessarily think there is a way to move the Icon to the right because the App Bar's default behavior. There is however a workaround, if it's what you're looking for then:

1. First step would be removing the ActionBar Icon: See this Post

2. Then add another ActionBar button and have the button's icon to whatever icon you would like i.e. the 'Maps' icon.

3. This way, you have the icon, it's still clickable but you don't really have to add a click event for it unless needed.

Hopefully this helped you or atleast got some inspiration on what else you could do.

Upvotes: 3

Related Questions