Last active
          December 11, 2015 02:09 
        
      - 
      
 - 
        
Save techneo1/4528645 to your computer and use it in GitHub Desktop.  
    Android UI - Hiding TitleBar for an Acticity or Entire Application
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | >>>> 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