Handle Activity Resize when going FullScreen

view story

http://stackoverflow.com – In my Android app, when I switch to full screen mode using the following piece of code: this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN); the screen goes to full screen by hiding the notification bar at the top. The notification bar animates out of the visible space, but the activity expands with a jerk. During the time when the notification bar is hiding, the space is taken up by a white area. And when the notification hiding completes, the activity resizes. How can I allow the activity to expand with animation? For that the question to answer will be how to handle th (HowTos)