Created
May 14, 2018 05:21
-
-
Save lalitsharma1607/f7617ec65e96aa3fd783fbd4cc8ef714 to your computer and use it in GitHub Desktop.
Handling the jerk while changing full screen mode to normal mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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