3

I want to show the action bar navigation icon on the Right side of the ActionBar [instead of the default left side].

Also I need to have the same slide in animation of the Navigation Drawer icon as in the Gmail and Google plus application.

Is there any way of achieving that animation on the right side easily.

Any kind of help or suggestion is appreciated.

Thanks in advance!

AabidMulani
  • 2,325
  • 1
  • 28
  • 47

1 Answers1

3

This is how I've implemented the right navigation drawer. Just need to open and close the drawer based on Gravity. In this example they use Gravity.RIGHT, I use Gravity.END. I'm not sure which one is right or wrong. Hope this helps.

This link for ActionBar animation provides some good information, and should give a good base for doing the navigation drawer icon animation.

Community
  • 1
  • 1
RoraΖ
  • 634
  • 9
  • 21
  • i need to animate the navigation drawer ICON. The navigation drawer icon moving slightly outside the boundaries of the action bar. – AabidMulani Aug 05 '14 at 13:21
  • 1
    My apologies for not completely answering your question, I didn't see the 'icon' portion. This link might help you, http://stackoverflow.com/questions/9898972/android-actionbar-item-animation – RoraΖ Aug 05 '14 at 13:51
  • this is clear and good tuterial http://stackoverflow.com/questions/33464416/use-custom-layout-in-navigationdrawer-with-header-and-list/33464417#33464417 – Saeed Darvish Nov 01 '15 at 16:30