Skip to content

Instantly share code, notes, and snippets.

@lalitsharma1607
Created May 14, 2018 05:21
Show Gist options
  • Save lalitsharma1607/f7617ec65e96aa3fd783fbd4cc8ef714 to your computer and use it in GitHub Desktop.
Save lalitsharma1607/f7617ec65e96aa3fd783fbd4cc8ef714 to your computer and use it in GitHub Desktop.
Handling the jerk while changing full screen mode to normal mode
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_welcome);
/*handling full screen to normal screen mode*/
WindowManager.LayoutParams attributes = getWindow().getAttributes();
attributes.flags |= WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
getWindow().setAttributes(attributes);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment