Theme styles defined by the Android platform:
Android: theme = "@ Android: style/theme. Dialog" shows an activity as a dialog box
• Android: theme = "@ Android: style/theme. notitlebar" does not display the application title bar
• Android: theme = "@ Android: style/theme. notitlebar. fullscreen": The application title bar is not displayed and displayed in full screen.
• Android: theme = "@ Android: style/theme. Light" the background is white
• Android: theme = "@ Android: style/theme. Light. notitlebar" the white background does not have a title bar.
• Android: theme = "@ Android: style/theme. Light. notitlebar. fullscreen" white background, no title bar, full screen
• Android: theme = "@ Android: style/theme. Black" background black
• Android: theme = "@ Android: style/theme. Black. notitlebar" the black background does not have a title bar.
• Android: theme = "@ Android: style/theme. Black. notitlebar. fullscreen" black background, no title bar, full screen
• Android: theme = "@ Android: style/theme. Wallpaper" uses the system desktop as the background of the application
• Android: theme = "@ Android: style/theme. wallpaper. notitlebar" uses the system desktop as the background of the application without a title bar.
• Android: theme = "@ Android: style/theme. wallpaper. notitlebar. fullscreen" uses the system desktop as the background of the application, with no title bar and full screen
• Android: theme = "@ Android: style/translucent" Translucent Effect
• Android: theme = "@ Android: style/theme. translucent. notitlebar" translucent and no title bar
• Android: theme = "@ Android: style/theme. translucent. notitlebar. fullscreen" Translucent effect, no title bar, full screen
• Android: theme = "@ Android: style/theme. Panel"
The Android platform defines three font sizes:
"? Android: ATTR/textappearancelarge"
"? Android: ATTR/textappearancemedium"
"? Android: ATTR/textappearancesmall"
Android font color:
Android: textcolor = "? Android: ATTR/textcolorprimary"
Android: textcolor = "? Android: ATTR/textcolorsecondary"
Android: textcolor = "? Android: ATTR/textcolortertiary"
Android: textcolor = "? Android: ATTR/textcolorprimaryinverse"
Android: textcolor = "? Android: ATTR/textcolorsecondaryinverse"
Android progressbar style:
Style = "? Android: ATTR/progressbarstylehorizontal"
Style = "? Android: ATTR/progressbarstylelarge"
Style = "? Android: ATTR/progressbarstylesmall"
Style = "? Android: ATTR/progressbarstylesmalltitle"
Delimiter
Horizontal:
<View
Android: layout_width = "fill_parent"
Android: layout_height = "1dip"
Android: Background = "? Android: ATTR/listdivider "/>
Vertical:
<View Android: layout_width = "1dip"
Android: layout_height = "fill_parent"
Android: Background = "? Android: ATTR/listdivider "/>
Checkbox Style
Style = "? Android: ATTR/starstyle"
Textview similar to the title bar Effect
Style = "? Android: ATTR/listseparatortextviewstyle"
Other useful styles
Android: layout_height = "? Android: ATTR/listpreferreditemheight"
Android: paddingright = "? Android: ATTR/scrollbarsize"
Style = "? Android: ATTR/windowtitlebackgroundstyle"
Style = "? Android: ATTR/windowtitlestyle"
Android: layout_height = "? Android: ATTR/windowtitlesize"
Android: Background = "? Android: ATTR/windowbackground"
Modify the title bar style of an activity
For example, add
<Resources>
<Style name = "autowindowtitlebackground">
<Item name = "Android: background" >#778899 </item>
</Style>
<Style name = "autowindowtitlebar" parent = "Android: Theme">
<Item name = "Android: windowtitlesize"> 32dp </item>
<Item name = "Android: windowtitlebackgroundstyle"> @ style/autowindowtitlebackground </item>
</Style>
</Resources>
Next, modify the androidmanifest. xml file, find the activity to customize the title bar, and add the Android: Theme value, for example:
<activity android:name=".MainActivity" android:theme="@style/autoWindowTitlebar">
Remove the title bar of all activity Interfaces
Modify androidmanifest. xml
Add Android: theme = "@ Android: style/theme. notitlebar" to the application tag"
Address: http://blog.sina.com.cn/s/blog_70c759fd01013phv.html