hide the status bar and title bar

Quickly share your Android Code Snippets here...

hide the status bar and title bar

Postby spring » Wed Jan 27, 2010 9:38 am

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. //for hide the status bar
  2.  
  3.         getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
  4.  
  5.                         WindowManager.LayoutParams.FLAG_FULLSCREEN);
  6.  
  7.        
  8.  
  9.         //hide the title bar
  10.  
  11.         requestWindowFeature(Window.FEATURE_NO_TITLE);
  12.  
  13.         requestWindowFeature(Window.FEATURE_PROGRESS);
Parsed in 0.032 seconds, using GeSHi 1.0.8.4
spring
Junior Developer
Junior Developer
 
Posts: 19
Joined: Sat Jan 09, 2010 4:37 am
Location: China

Top

Re: hide the status bar and title bar

Postby Unconn » Fri Jan 28, 2011 8:54 pm

Thanks. Will be trying this tonight I could use the screen space.
Unconn
Freshman
Freshman
 
Posts: 2
Joined: Fri Jan 28, 2011 8:53 pm

Top

Return to Code Snippets for Android

Who is online

Users browsing this forum: No registered users and 5 guests