May 1, 2010

[SOLVED]Android: How to Make an Activity Fullscreen



  1. public class FullScreen extends Activity {

  2. @Override

  3. public void onCreate(Bundle savedInstanceState) {

  4. super.onCreate(savedInstanceState);


  5. requestWindowFeature(Window.FEATURE_NO_TITLE);

  6. getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,

  7. WindowManager.LayoutParams.FLAG_FULLSCREEN);


  8. setContentView(R.layout.main);

  9. }

  10. }




Source: Android Snippets: How to Make an Activity Fullscreen.

No comments:

Post a Comment