Resize Handles on FullScreen Transitions

In my Android app, when I switch to full screen mode using the following code snippet:

this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

the screen goes into full screen mode, hiding the notification bar at the top. The notification panel is displayed from the visible space, but the activity is expanded with a jerk. While the notification bar is hiding, the space is occupied by a white area. And when the notification hiding is completed, the activity changes.

How can I let activity expand with animation? For this, the question will be how to handle the activity size changed in this scenario?

I already tried processing onConfigurationChanged () - did not hit (after submitting screenSize in android: configChanges for my activity in the manifest)

The same thing happens when you hide the action bar. The action bar hides with the animation, leaving a space behind it. And when this is done, activity enters with a jerk! Arggh!

+5
source share

All Articles