Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Removing Android Status Bar in Eclipse's Graphical Layout

Tags:

android

How do I remove the android emulator's Status Bar inside Eclipse's Graphical Layout? My application is set to run in full screen mode, but I'm having a hard time in layouting because the status bar is present in the graphical layout of Eclipse.

like image 541
Jayson Tamayo Avatar asked Jun 06 '12 03:06

Jayson Tamayo


2 Answers

You can just change the theme in the drop-down list (or perhaps better said in Android terminology: Spinner :)) at the top right corner in the layout editor to one of the *.NoTitleBar.Fullscreen options.

Edit: added screenshot.

android themes in eclipse layout editor

By the way, if you have a hard time creating layouts that properly scale with or without the titlebar/actionbar, you may have to rethink if you're going down the right path. If you're developing for a specific (number of) device(s), then I haven't said anything.

like image 188
MH. Avatar answered Oct 09 '22 01:10

MH.


you can select the theme spinner and select the "Theme.NoTitleBar.Fullscreen".

Using code:-

requestWindowFeature(Window.FEATURE_NO_TITLE); getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

above written code placed in oncreate method

like image 33
Amit kumar Avatar answered Oct 09 '22 01:10

Amit kumar