Skip to content

Instantly share code, notes, and snippets.

@techneo1
Last active December 11, 2015 02:09
Show Gist options
  • Save techneo1/4528645 to your computer and use it in GitHub Desktop.
Save techneo1/4528645 to your computer and use it in GitHub Desktop.
Android UI - Hiding TitleBar for an Acticity or Entire Application
>>>> Type 1
themes.xml
----------
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- use the Android Light theme as the base for our own theme -->
<style name="MySuperTheme" parent="@android:style/Theme.Light">
<!-- hide the Window Title -->
<item name="android:windowNoTitle">true</item>
<!-- Other Styles -->
</style>
</resources>
>>>> Type 2
Activity.java
-------------
@Override public void onCreate(Bundle state) {
...
requestWindowFeature(Window.FEATURE_NO_TITLE);
}
>>>> Type 3
AndroidMAnifest.xml
-------------------
- Entire Application
<application
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
- Activity Specific
<activity
android:name=".MyMainClass"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment