Answer the question
In order to leave comments, you need to log in
How to prevent the toolbar from moving at full screen in android?
I made a dialog box with only one image, which, when FULL_SCREEN, removes the statusbar, everything works as it should.
But when you exit it, the statusbar returns animation, and the toolbar moves.
How to make the toolbar initially stay in place when the statusbar is hidden, you can create an empty space instead.
windowTranslucentStatus and fitsSystemWindows solve this problem, but the statusbar becomes translucent, which does not look very good.
One of my thoughts is to make the statusbar floating and for the toolbar set the top indent equal to the statusbar, but I don’t know how to do it.
How to solve the problem?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question