Theme:
-
- • Android: theme = "@ Android: style/theme. Dialog" shows an activity as a dialog box
-
- • Android: theme = "@ Android: style/theme. notitlebar" Do Not Display ApplicationsProgramTitle 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"
-
- • Android: theme = "@ Android: style/theme. Light. Panel"
CopyCode
A collection of built-in styles in Android:
The Android platform defines three font sizes.
- "? Android: ATTR/textappearancelarge"
- "? Android: ATTR/textappearancemedium"
- "? Android: ATTR/textappearancesmall"
Copy code
Usage:
- Android: textappearance = "? Android: ATTR/textappearancelarge"
- Android: textappearance = "? Android: ATTR/textappearancemedium"
- Android: textappearance = "? Android: ATTR/textappearancesmall"
Copy code
Or
- Style = "? Android: ATTR/textappearancelarge"
- Style = "? Android: ATTR/textappearancemedium"
- Style = "? Android: ATTR/textappearancesmall"
Copy code
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"
Copy code
Androidprogressbar
- Style = "? Android: ATTR/progressbarstylehorizontal"
- Style = "? Android: ATTR/progressbarstylelarge"
- Style = "? Android: ATTR/progressbarstylesmall"
- Style = "? Android: ATTR/progressbarstylesmalltitle"
Copy code
Horizontal separator:
- <View
- Android: layout_width = "fill_parent"
- Android: layout_height = "1dip"
- Android: Background = "? Android: ATTR/listdivider "/>
Copy code
Vertical separator:
- <View Android: layout_width = "1dip"
- Android: layout_height = "fill_parent"
- Android: Background = "? Android: ATTR/listdivider "/>
Copy code
Checkbox
- Style = "? Android: ATTR/starstyle"
Copy code
Others
- // 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"