Jayson Tamayo
Jayson Tamayo

Reputation: 2809

Removing Android Status Bar in Eclipse's Graphical Layout

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.

Upvotes: 10

Views: 7522

Answers (3)

Andrea Cassigoli
Andrea Cassigoli

Reputation: 51

I had the same problem. In debugging process, my graphical layout was perfect on the Eclipse but not correct on my phisycal device because of the statu bar at the bottom of the graphical layout on Eclipse. I resolved this problem modifying the Theme of the layout inside eclipe and choosing "SearchBar", as shown in the pictures below. I hope to solve this question.

See the setting on Eclipse

Upvotes: 0

Amit kumar
Amit kumar

Reputation: 1605

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

Upvotes: 3

MH.
MH.

Reputation: 45503

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.

Upvotes: 16

Related Questions