Android - changing the position of the Android action bar

I am trying to create slide menus like Facebook and Path apps . I want to place a button on the right end of the action bar, which will cause the menu to open and close. When the menu slides to make myself visible, I want to bring the main view to the left and the action bar.

Everything else works fine. I am using open source code available at https://github.com/gitgrimbo/android-sliding-menu-demo

But I can’t find out if I can apply slide animation to the action bar ? If not, then creating my own action bar and incorporating activity into the layouts is the way I believe. I would appreciate any expert guidance on this.

+3
source share
1 answer

As far as I know, this is not possible. The ActionBar is not inherited from View, so you cannot get any layout options. I believe that it is actually located outside the window that comes with your activity. So for the effect you are describing, the custom action bar might be ok. Alternatively, you might think of a transparent / translucent action bar overlaying your activity that you show / hide when that bar pops up (as mentioned here ) - just a thought, but end up doing what you think offers The best UX for your application.

+1
source

All Articles