Posted By

BenClayton on 02/17/11


Tagged


Versions (?)

Android: Make Activity Full-Screen in code


 / Published in: Java
 

Put in onCreate function BEFORE the setContentView.

  1. requestWindowFeature(Window.FEATURE_NO_TITLE);
  2. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: BenClayton on February 28, 2011

Or put android:theme="@android:style/Theme.NoTitleBar.Fullscreen" as an attribute on the Activity element in the AndroidManifest.xml

You need to login to post a comment.