IdleSun's Weblog

June 5, 2010

How to hide Android status bar and title bar.

Filed under: Android — idlesun @ 12:26 am

I  looked for how-to. And found one that uses API: http://www.anddev.org/hide_statusbar-title_on_qvga_-_getting_screen_resolution-t2689.html. This solution is nice when app window style needs to be determined and set dynamically.

Later, I found an another way that uses style and much easier if app window style is fixed.  It is just adding the android:theme attribute to activity element in AdroidManifest.xml file:

<activity android:name=".HelloWorld" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

For more info, check the last part of http://developer.android.com/guide/topics/ui/themes.html and the Android Styles and Themes XML files.

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

%d bloggers like this: