Android-related style attributes and androidstyle attributes
Style attribute values in android
Theme styles defined by the Android platform:
Android: theme = "@ android: style/Theme. dieme" // display an Activity as a Dialog box
Android: theme = "@ android: style/Theme. NoTitleBar" // The application title bar is not displayed.
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" // There is no title bar in the white background.
Android: theme = "@ android: style/Theme. Light. NoTitleBar. Fullscreen" // white background, no title bar, full screen
Android: theme = "@ android: style/Theme. Black" // Black background
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" // use the system desktop as the background of the application
Android: theme = "@ android: style/Theme. Wallpaper. NoTitleBar" // use the system desktop as the background of the application without a title bar
Android: theme = "@ android: style/Theme. Wallpaper. NoTitleBar. Fullscreen" // use the system desktop as the background of the application. No title bar, full screen
Android: theme = "@ android: style/Translucent" // Translucent Effect
Android: theme = "@ android: style/Theme. Translucent. NoTitleBar" // There is no title bar in Translucent mode.
Android: theme = "@ android: style/Theme. Translucent. NoTitleBar. Fullscreen" // Translucent effect, no title bar, full screen
Android custom topic. The item in the style contains the attributes of the custom window name and the values of these attributes.
<Item name = "android: textAppearance">? Android: attr/textAppearance </item>
<Item name = "android: textStyle"> normal </item>
<Item name = "android: textColor"> # FFFFFFFF </item>
<Item name = "android: textSize"> 16dp </item>
<Item name = "android: windowEnterAnimation"> @ * android: anim/grow_fade_in_from_bottom </item>
<Item name = "android: javaswexitanimation"> @ * android: anim/shrink_fade_out_from_bottom </item>
<Item name = "android: fontFamily"> sans-serif-light </item>
<Item name = "android: textAllCaps"> true </item>
These are some of the Style. xml in the UI under the 4.1 system source code. common attributes are supported and the information is incomplete. I cannot estimate all of them here. You can customize attributes.
What are the items under style in Android? What are the differences? The most comprehensive answer, or document
There is no comprehensive answer. The style is only used to define a style you need. It can be a button, textview, or imageview. For each, they have different style attributes, such:
<Style name = "AccountPage_LabelText" parent = "@ android: style/Widget. TextView">
<Item name = "android: textColor"> @ android: color/white </item>
<Item name = "android: layout_marginTop"> 5px </item>
<Item name = "android: layout_marginBottom"> 3px </item>
<Item name = "android: layout_height"> wrap_content </item>
<Item name = "android: layout_width"> wrap_content </item>
</Style>
This is a Textview.
Style
<Style name = "ListViewStyle" parent = "@ android: style/Widget. Holo. ListView">
<Item name = "android: listSelector"> @ drawable/XXX </item>
<Item name = "android: background"> @ color/XXX </item>
<Item name = "android: divider"> @ drawable/XXX </item>
</Style> This Is A listview style, each of which is different.