Android Development Notes

From Wiki³
Revision as of 21:27, 18 June 2012 by Kyau (talk | contribs) (Created page with "{{DISPLAYTITLE:Android Development Notes}} <div id="tocalign">__TOC__</div> =Hiding the Activity Titlebar= public void onCreate(Bundle savedInstanceState) { //Rem...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hiding the Activity Titlebar

   public void onCreate(Bundle savedInstanceState) {
       //Remove title bar
       this.requestWindowFeature(Window.FEATURE_NO_TITLE);
       //Remove notification bar
       this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
       //Launch the Main layout
       super.onCreate(savedInstanceState);
       setContentView(R.layout.main);
   }