android-sliding-layer-lib icon indicating copy to clipboard operation
android-sliding-layer-lib copied to clipboard

Sliding overlay Actionbar

Open jamesmartins opened this issue 10 years ago • 2 comments

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

Thanks.

jamesmartins avatar Apr 28 '15 09:04 jamesmartins

ya how to do over/above ActionBar?

mkaarthick avatar May 05 '15 05:05 mkaarthick

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?

JlUgia avatar Jun 14 '15 16:06 JlUgia