Tuesday, September 7, 2010

How to hide the title bar(FULL SCREEN MODE ) ?



Add this lines in your code in oncreate() method just before setting setContentView() method.


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


  setContentView(R.layout.main);  


No comments:

Post a Comment

Android Developers Blog

Ram's shared items