Question

I am currently developing an application which is not fullscreen (Notification bar is visible). On the bottom of most of my activities, I have a sliding drawer that brings up a kind of dashboard. As of now, this sliding drawer is part of the main RelativeLayout and shows/hides fine. However, of course, it gets expanded up to the bottom of the notification area.

I would need this sliding drawer to cover the notification bar in order for it to take the whole screen. Maybe by attaching it to the main Layout instead of the activity Layout?

Another way that would be ok would be to hide the notification bar (maybe using an animation to slide it up) when the sliding drawer is opening and show it back when the drawer is closing.

Has anybody managed to do such a thing?

Was it helpful?

Solution

You cannot draw Views on top of the notification bar. You can hide it by making your application fullscreen, but that's all.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top