Skip to content
This repository has been archived by the owner on Feb 20, 2021. It is now read-only.

Sliding overlay Actionbar #73

Open
jamesmartins opened this issue Apr 28, 2015 · 2 comments
Open

Sliding overlay Actionbar #73

jamesmartins opened this issue Apr 28, 2015 · 2 comments

Comments

@jamesmartins
Copy link

Hi.
How do I do when the layerPosition = "TOP" working overlaying ActionBar?

Thanks.

@mkaarthick
Copy link

ya how to do over/above ActionBar?

@JlUgia
Copy link
Contributor

JlUgia commented Jun 14, 2015

Hello @jamesmartins, @mkaarthick.
This is unrelated to how the layer operates itself. You do this externally in your layout similar to how you'd do with any other view (eg.: DrawerLayout).

The first thing you need to do is make sure the are of influence of your view is the entire screen. There are a few ways to do that. You can use a theme such as FullScreen or NoTitleBaror properties in your xml view like fitsSystemWindow.

Once your view expands to the entire surface of your window you can control the hierarchical position of your actionBar by using the new Toolbar component available in support v7 libraries. To display your toolbar below the sliding layer, simply place it properly in your xml file.

Here is a related post in StackOverflow addressing a similar issue, using the DrawerLayout. Check the answer marked as correct by Chris Banes.

Please note that I have not tried that myself yet. It'd be very interesting to see your results. Could you please share them once you get the desired effect?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants