Skip to content Skip to sidebar Skip to footer

Android - Change Position Of Android Action Bar

I am trying to build a slide out menu like Facebook and Path apps. I want to place a button on right end of action bar which would trigger opening and closing the menu. When the me

Solution 1:

To the best of my knowledge, this isn't possible. The ActionBar object doesn't inherit from View, so you can't get any of the layout parameters. I believe that it actually resides outside of the window that gets supplied to your activity. So for the effect you're describing, a custom action bar might be in order. Alternatively, you might consider have a transparent/ translucent action bar overlaying your activity, that you show/hide when that panel pops out (as mentioned here) - just a thought, but ultimately do what you feel offers the best UX for your application.


Post a Comment for "Android - Change Position Of Android Action Bar"