java.lang.Object | |
↳ | android.R.style |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Base style for animations. This style specifies no animations.
Standard animations for a full-screen window or activity.
Standard animations for a non-full-screen window or activity.
Window animations that are applied to input method overlay windows.
Standard animations for a translucent window or activity. This style is not used by default for the translucent theme (since translucent activities are a special case that have no clear UI paradigm), but you can make your own specialized theme with this animation style if you would like to have the standard platform transition animation.
Other Styles
Text Appearance Styles
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
Begin Holo theme styles Text Styles
This style is for smaller screens; values-xlarge defines a version for larger screens.
Begin Material theme styles Text styles
Deprecated text styles
Notification content styles
The default theme for apps on API level 10 and lower. This is the theme used for activities that have not explicitly set their own theme.
You can count on this being a dark background with light text on top, but should try to make no other assumptions about its appearance. In particular, the text inside of widgets using this theme may be completely different, with the widget container being a light color and the text on top of it a dark color.
If you're developing for API level 11 and higher, you should instead use Theme_Holo
or Theme_DeviceDefault
.
Theme overlay that replaces the normal control color, which by default is the same as the secondary text color, with the primary text color.
Theme overlay that replaces colors with their dark versions but preserves the value of colorAccent, colorPrimary and its variants.
Theme overlay that replaces colors with their dark versions and replaces the normal control color, which by default is the same as the secondary text color, with the primary text color.
Theme overlay that replaces colors with their light versions but preserves the value of colorAccent, colorPrimary and its variants.
Variant of Theme_Black
with no title bar
Variant of Theme_Black
that has no title bar and
no status bar. This theme
sets windowFullscreen
to true.
The default theme for apps that target API level XX and higher.
The DeviceDefault themes are aliases for a specific device’s native look and feel. The DeviceDefault theme family and widget style family offer ways for you to target your app to a device’s native theme with all device customizations intact.
For example, when you set your app's targetSdkVersion
to XX or higher, this
theme is applied to your application by default. As such, your app might appear with the
Material
styles on one device, but with a different set of styles on
another device. This is great if you want your app to fit with the device's native look and
feel. If, however, you prefer to keep your UI style the same across all devices, you should
apply a specific theme such as Material
or one of your own design.
For more information, read Material
Everywhere.
Styles used by the DeviceDefault theme are named using the convention
Type.DeviceDefault.Etc (for example, Widget.DeviceDefault.Button
and
TextAppearance.DeviceDefault.Widget.PopupMenu.Large
).
DeviceDefault theme for dialog windows and activities. This changes the window to be floating (not fill the entire screen), and puts a frame around its contents. You can set this theme on an activity if you would like to make an activity that looks like a Dialog.
DeviceDefault theme for a window that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
DeviceDefault theme for a window without an action bar that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Variant of Theme_DeviceDefault_Dialog
that has a nice minimum width for a
regular dialog.
Variant of Theme_DeviceDefault_Dialog
without an action bar
Variant of Theme_DeviceDefault_Dialog_NoActionBar
that has a nice minimum width
for a regular dialog.
DeviceDefault style for input methods, which is used by the
InputMethodService
class.
Variant of Theme_DeviceDefault
with a light-colored style
Variant of the DeviceDefault (light) theme that has a solid (opaque) action bar with an inverse color profile.
DeviceDefault light theme for dialog windows and activities. This changes the window to be floating (not fill the entire screen), and puts a frame around its contents. You can set this theme on an activity if you would like to make an activity that looks like a Dialog.
DeviceDefault light theme for a window that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
DeviceDefault light theme for a window without an action bar that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Variant of Theme_DeviceDefault_Light_Dialog
that has a nice minimum width for a
regular dialog.
Variant of Theme_DeviceDefault_Light_Dialog
without an action bar
Variant of Theme_DeviceDefault_Light_Dialog_NoActionBar
that has a nice minimum
width for a regular dialog.
Variant of Theme_DeviceDefault_Light
with no action bar
Variant of Theme_DeviceDefault_Light
with no action bar and no status bar.
This theme sets windowFullscreen
to true.
Variant of Theme_DeviceDefault_Light
with no action bar and no status bar
and extending in to overscan region. This theme
sets windowFullscreen
and windowOverscan
to true.
Variant of Theme_DeviceDefault_Light
that has no title bar and translucent
system decor. This theme sets windowTranslucentStatus
and
windowTranslucentNavigation
to true.
DeviceDefault light theme for panel windows. This removes all extraneous window decorations, so you basically have an empty rectangle in which to place your content. It makes the window floating, with a transparent background, and turns off dimming behind the window.
Variant of Theme_DeviceDefault
with no action bar
Variant of Theme_DeviceDefault
with no action bar and no status bar. This theme
sets windowFullscreen
to true.
Variant of Theme_DeviceDefault
with no action bar and no status bar and
extending in to overscan region. This theme
sets windowFullscreen
and windowOverscan
to true.
Variant of Theme_DeviceDefault
that has no title bar and translucent
system decor. This theme sets windowTranslucentStatus
and
windowTranslucentNavigation
to true.
DeviceDefault theme for panel windows. This removes all extraneous window decorations, so you basically have an empty rectangle in which to place your content. It makes the window floating, with a transparent background, and turns off dimming behind the window.
DeviceDefault theme for a window that should look like the Settings app.
DeviceDefault theme for windows that want to have the user's selected wallpaper appear behind them.
DeviceDefault theme for windows that want to have the user's selected wallpaper appear behind them and without an action bar.
Default theme for dialog windows and activities (on API level 10 and lower),
which is used by the
Dialog
class. This changes the window to be
floating (not fill the entire screen), and puts a frame around its
contents. You can set this theme on an activity if you would like to
make an activity that looks like a Dialog.
The default theme for apps on API level 10 and lower. This is the theme used for activities that have not explicitly set their own theme.
You can count on this being a dark background with light text on top, but should try to make no other assumptions about its appearance. In particular, the text inside of widgets using this theme may be completely different, with the widget container being a light color and the text on top of it a dark color.
If you're developing for API level 11 and higher, you should instead use Theme_Holo
or Theme_DeviceDefault
.
This is the default system theme for apps that target API level 11 - 13. Starting
with API level 14, the default system theme is supplied by Theme_DeviceDefault
,
which might apply a different style on different devices. If you want to ensure that your
app consistently uses the Holo theme at all times, you must explicitly declare it in your
manifest. For example, <application android:theme="@android:style/Theme.Holo">
.
For more information, read Holo
Everywhere.
The widgets in the holographic theme are translucent on their background, so applications must ensure that any background they use with this theme is itself dark; otherwise, it will be difficult to see the widgets. This UI style also includes a full action bar by default.
Styles used by the Holo theme are named using the convention Type.Holo.Etc
(for example, Widget.Holo.Button
and TextAppearance.Holo.Widget.PopupMenu.Large
).
Specific resources used by Holo are named using the convention @type/foo_bar_baz_holo
with trailing _dark or _light specifiers if they are not shared between both light and
dark versions of the theme.
Holo theme for dialog windows and activities, which is used by the
Dialog
class. This changes the window to be
floating (not fill the entire screen), and puts a frame around its
contents. You can set this theme on an activity if you would like to
make an activity that looks like a Dialog.
This is the default Dialog theme for applications targeting Honeycomb
or newer.
Theme for a window that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Theme for a window without a title bar that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Variant of Theme.Holo.Dialog that has a nice minimum width for a regular dialog.
Variant of Theme.Holo.Dialog that does not include a title bar.
Variant of Theme.Holo.Dialog.NoActionBar that has a nice minimum width for a regular dialog.
Default theme for holo style input methods, which is used by the
InputMethodService
class.
this inherits from Theme.Panel, but sets up IME appropriate animations
and a few custom attributes.
Honeycomb holographic theme (light version). The widgets in the holographic theme are translucent on their brackground, so applications must ensure that any background they use with this theme is itself light; otherwise, it will be difficult to see the widgets. This UI style also includes a full action bar by default.
Variant of the holographic (light) theme that has a solid (opaque) action bar with an inverse color profile. The dark action bar sharply stands out against the light content.
Light holo dialog themes
Holo light theme for dialog windows and activities, which is used by the
Dialog
class. This changes the window to be
floating (not fill the entire screen), and puts a frame around its
contents. You can set this theme on an activity if you would like to
make an activity that looks like a Dialog.
This is the default Dialog theme for applications targeting Honeycomb
or newer.
Theme for a window that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Theme for a window without an action bar that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Variant of Theme.Holo.Light.Dialog that has a nice minimum width for a regular dialog.
Variant of Theme.Holo.Light.Dialog that does not include a title bar.
Variant of Theme.Holo.Light.Dialog.NoActionBar that has a nice minimum width for a regular dialog.
Variant of the holographic (light) theme with no action bar.
Variant of the holographic (light) theme that has no title bar and fills
the entire screen. This theme
sets windowFullscreen
to true.
Variant of the holographic (light) theme that has no title bar and fills
the entire screen and extends into the display overscan region. This theme
sets windowFullscreen
and windowOverscan
to true.
Variant of the holographic (light) theme that has no title bar and translucent
system decor. This theme sets windowTranslucentStatus
and
windowTranslucentNavigation
to true.
Default holo light theme for panel windows. This removes all extraneous window decorations, so you basically have an empty rectangle in which to place your content. It makes the window floating, with a transparent background, and turns off dimming behind the window.
Variant of the holographic (dark) theme with no action bar.
Variant of the holographic (dark) theme that has no title bar and fills
the entire screen. This theme
sets windowFullscreen
to true.
Variant of the holographic (dark) theme that has no title bar and fills
the entire screen and extends into the display overscan region. This theme
sets windowFullscreen
and windowOverscan
to true.
Variant of the holographic (dark) theme that has no title bar and translucent
system decor. This theme sets windowTranslucentStatus
and
windowTranslucentNavigation
to true.
Default holo dark theme for panel windows. This removes all extraneous window decorations, so you basically have an empty rectangle in which to place your content. It makes the window floating, with a transparent background, and turns off dimming behind the window.
Default holographic (dark) for windows that want to have the user's selected wallpaper appear behind them.
Default holographic (dark) for windows that want to have the user's selected wallpaper appear behind them and without an action bar.
Default theme for input methods (on API level 10 and lower), which is used by the
InputMethodService
class.
this inherits from Theme.Panel, but sets up IME appropriate animations
and a few custom attributes.
Theme for a light background with dark text on top. Set your activity to this theme if you would like such an appearance. As with the default theme, you should try to assume little more than that the background will be a light color.
This is designed for API level 10 and lower.
Variant of Theme_Light
with no title bar
Variant of Theme_Light
that has no title bar and
no status bar. This theme
sets windowFullscreen
to true.
Default light theme for panel windows (on API level 10 and lower). This removes all extraneous window decorations, so you basically have an empty rectangle in which to place your content. It makes the window floating, with a transparent background, and turns off dimming behind the window.
Theme for a wallpaper's setting activity, which is designed to be a transparent background with a light shade, so the previous Activity is visible in the background.
Material theme (dark version).
If you want to ensure that your
app consistently uses the Material theme at all times, you must explicitly declare it in your
manifest. For example, <application android:theme="@style/Theme.Material">
.
Styles used by the Material theme are named using the convention Type.Material.Etc
(for example, Widget.Material.Button
and TextAppearance.Material.Widget.PopupMenu.Large
).
Specific resources used by Material are named using the convention @type/foo_bar_baz_material
with trailing _dark or _light specifiers if they are not shared between both light and
dark versions of the theme.
Material theme for dialog windows and activities, which is used by the
Dialog
class. This changes the window to be
floating (not fill the entire screen), and puts a frame around its
contents. You can set this theme on an activity if you would like to
make an activity that looks like a Dialog.
Theme for a window that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Theme for a window without a title bar that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Material theme for alert dialog windows, which is used by the
AlertDialog
class. This is basically a dialog
but sets the background to empty so it can do two-tone backgrounds.
For applications targeting Honeycomb or newer, this is the default
AlertDialog theme.
Variant of Theme.Material.Dialog that has a nice minimum width for a regular dialog.
Variant of Theme.Material.Dialog that does not include a title bar.
Variant of Theme.Material.Dialog.NoActionBar that has a nice minimum width for a regular dialog.
Theme for a presentation window on a secondary display.
Default theme for material style input methods, which is used by the
InputMethodService
class.
this inherits from Theme.Panel, but sets up IME appropriate animations
and a few custom attributes.
Material theme (light version).
Variant of the material (light) theme that has a solid (opaque) action bar with an inverse color profile. The dark action bar sharply stands out against the light content.
Material light theme for dialog windows and activities, which is used by the
Dialog
class. This changes the window to be
floating (not fill the entire screen), and puts a frame around its
contents. You can set this theme on an activity if you would like to
make an activity that looks like a Dialog.
Theme for a window that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Theme for a window without an action bar that will be displayed either full-screen on smaller screens (small, normal) or as a dialog on larger screens (large, xlarge).
Material light theme for alert dialog windows, which is used by the
AlertDialog
class. This is basically a dialog
but sets the background to empty so it can do two-tone backgrounds.
For applications targeting Honeycomb or newer, this is the default
AlertDialog theme.
Variant of Theme.Material.Light.Dialog that has a nice minimum width for a regular dialog.
Variant of Theme.Material.Light.Dialog that does not include a title bar.
Variant of Theme.Material.Light.Dialog.NoActionBar that has a nice minimum width for a regular dialog.
Theme for a presentation window on a secondary display.
Variant of the material (light) theme with no action bar.
Variant of the material (light) theme that has no title bar and fills
the entire screen. This theme
sets windowFullscreen
to true.
Variant of the material (light) theme that has no title bar and fills
the entire screen and extends into the display overscan region. This theme
sets windowFullscreen
and windowOverscan
to true.
Variant of the material (light) theme that has no title bar and translucent
system decor. This theme sets windowTranslucentStatus
and
windowTranslucentNavigation
to true.
Default material light theme for panel windows. This removes all extraneous window decorations, so you basically have an empty rectangle in which to place your content. It makes the window floating, with a transparent background, and turns off dimming behind the window.
Material light theme for an activity that is to be used for voice interaction. This gives the activity a floating dialog style, to incorporate with the system voice experience.
Variant of the material (dark) theme with no action bar.
Variant of the material (dark) theme that has no title bar and fills
the entire screen. This theme
sets windowFullscreen
to true.
Variant of the material (dark) theme that has no title bar and fills
the entire screen and extends into the display overscan region. This theme
sets windowFullscreen
and windowOverscan
to true.
Variant of the material (dark) theme that has no title bar and translucent
system decor. This theme sets windowTranslucentStatus
and
windowTranslucentNavigation
to true.
Default material dark theme for panel windows. This removes all extraneous window decorations, so you basically have an empty rectangle in which to place your content. It makes the window floating, with a transparent background, and turns off dimming behind the window.
Default theme for Settings and activities launched from Settings.
Material theme for an activity that is to be used for voice interaction. This gives the activity a floating dialog style, to incorporate with the system voice experience.
Default material (dark) for windows that want to have the user's selected wallpaper appear behind them.
Default material (dark) for windows that want to have the user's selected wallpaper appear behind them and without an action bar.
Default theme for activities that don't actually display a UI; that is, they finish themselves before being resumed.
Variant of Theme
with no title bar
Variant of Theme
that has no title bar and no status bar. This theme
sets windowFullscreen
to true.
No title bar, but Action Mode bars will overlay application content instead of pushing it down to make room.
Default dark theme for panel windows (on API level 10 and lower). This removes all extraneous window decorations, so you basically have an empty rectangle in which to place your content. It makes the window floating, with a transparent background, and turns off dimming behind the window.
Theme for translucent activities (on API level 10 and lower). That is, windows that allow you to see through them to the windows behind. This sets up the translucent flag and appropriate animations for your windows.
Variant of Theme_Translucent
with no title bar
Variant of Theme_Translucent
that has no title bar and
no status bar
Theme for windows that want to have the user's selected wallpaper appear behind them (for API level 10 and lower).
Theme for a wallpaper's setting activity, which is designed to be a transparent background with a dark shade, so the previous Activity is visible in the background.
Variant of Theme_Wallpaper
that has no title bar
Variant of Theme_Wallpaper
that
has no title bar or status bar.
Default theme with an Action Bar.
Widget Styles
Widget Styles
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
This constant was deprecated
in API level 21.
Action bars are now themed using the inheritable android:theme attribute.
Widget Styles
Light widget styles
Bordered ink button
Borderless ink button
Colored borderless ink button
Small borderless ink button
Small bordered ink button
Light widget styles