I want to write a book-reader application that normally runs in full-screen, but when user touched screen, status bar become visible OVER my main layout without re-creating the whole view. I already read these but no help at all:
Hide notification bar without using fullscreen Hide Notification bar Android Show Activity Title/status bar at the top after it is hidden
any idea how can I do it?
thanks
finally, I did it!! these 2 methods will show and hide status bar without destroying the layout. you need to set
then
and
and put this in your onCreate() method: