Android: Make Activity Full-Screen in code

/ Published in: Java
Save to your folder(s)

Put in onCreate function BEFORE the setContentView.

Copy this code and paste it in your HTML
  1. requestWindowFeature(Window.FEATURE_NO_TITLE);
  2. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.