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.

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Create a free website or blog at WordPress.com.