microsoftarchive / android-sliding-layer-lib

Highly customizable SlidingLayer as you have seen in Wunderlist
http://wunderlist.com
Apache License 2.0
932 stars 279 forks source link

Sliding overlay Actionbar #73

Open jamesmartins opened 9 years ago

jamesmartins commented 9 years ago

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

Thanks.

mkaarthick commented 9 years ago

ya how to do over/above ActionBar?

JlUgia commented 9 years ago

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?