A
A
Adik Izat2020-03-01 14:16:30
Android
Adik Izat, 2020-03-01 14:16:30

How to remove the panel above the ActionBar in a specific Activity?

I think the question is clear. Dear forum users, help with this small problem. I decided to add a camera to my application so that the user can upload a photo of a specific object. But here's the thing: when the activity with the camera opens, it's unpleasant that the panel is on top (above the ActionBar), where the time, battery charge and all sorts of notifications appear actively. So, how can you make sure that this panel is not in the activity with the camera?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
iBadCoder, 2020-03-04
@JaxAdam

Just set the required flags in the onCreate method

getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question