Android 系统提供的主题

news/2025/1/13 2:55:44/

android.R.style 列举了系统提供的样式主题。

在 xml 文件中,作为属性值使用时,需要将主题名称中的 "_"(短横)改为 .(点)。



Theme

The default theme for apps on API level 10 and lower.

Theme_Black

Variant on Theme that ensures the background is completely black.

Theme_Black_NoTitleBar

Variant of Theme_Black with no title bar

Theme_Black_NoTitleBar_Fullscreen

Variant of Theme_Black that has no title bar and no status bar.

Theme_DeviceDefault

The default theme for apps that target API level 14 and higher.

Theme_DeviceDefault_Dialog

DeviceDefault theme for dialog windows and activities.

Theme_DeviceDefault_DialogWhenLarge

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).

Theme_DeviceDefault_DialogWhenLarge_NoActionBar

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).

Theme_DeviceDefault_Dialog_MinWidth

Variant of Theme_DeviceDefault_Dialog that has a nice minimum width for a regular dialog.

Theme_DeviceDefault_Dialog_NoActionBar

Variant of Theme_DeviceDefault_Dialog without an action bar

Theme_DeviceDefault_Dialog_NoActionBar_MinWidth

Variant of Theme_DeviceDefault_Dialog_NoActionBarthat has a nice minimum width for a regular dialog.

Theme_DeviceDefault_InputMethod

DeviceDefault style for input methods, which is used by the InputMethodService class.

Theme_DeviceDefault_Light

Variant of Theme_DeviceDefault with a light-colored style

Theme_DeviceDefault_Light_DarkActionBar

Variant of the DeviceDefault (light) theme that has a solid (opaque) action bar with an inverse color profile.

Theme_DeviceDefault_Light_Dialog

DeviceDefault light theme for dialog windows and activities.

Theme_DeviceDefault_Light_DialogWhenLarge

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).

Theme_DeviceDefault_Light_DialogWhenLarge_NoActionBar

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).

Theme_DeviceDefault_Light_Dialog_MinWidth

Variant of Theme_DeviceDefault_Light_Dialog that has a nice minimum width for a regular dialog.

Theme_DeviceDefault_Light_Dialog_NoActionBar

Variant of Theme_DeviceDefault_Light_Dialog without an action bar

Theme_DeviceDefault_Light_Dialog_NoActionBar_MinWidth

Variant ofTheme_DeviceDefault_Light_Dialog_NoActionBar that has a nice minimum width for a regular dialog.

Theme_DeviceDefault_Light_NoActionBar

Variant of Theme_DeviceDefault_Light with no action bar

Theme_DeviceDefault_Light_NoActionBar_Fullscreen

Variant of Theme_DeviceDefault_Light with no action bar and no status bar.

Theme_DeviceDefault_Light_NoActionBar_Overscan

Variant of Theme_DeviceDefault_Light with no action bar and no status bar and extending in to overscan region.

Theme_DeviceDefault_Light_NoActionBar_TranslucentDecor

Variant of Theme_DeviceDefault_Light that has no title bar and translucent system decor.

Theme_DeviceDefault_Light_Panel

DeviceDefault light theme for panel windows.

Theme_DeviceDefault_NoActionBar

Variant of Theme_DeviceDefault with no action bar

Theme_DeviceDefault_NoActionBar_Fullscreen

Variant of Theme_DeviceDefault with no action bar and no status bar.

Theme_DeviceDefault_NoActionBar_Overscan

Variant of Theme_DeviceDefault with no action bar and no status bar and extending in to overscan region.

Theme_DeviceDefault_NoActionBar_TranslucentDecor

Variant of Theme_DeviceDefault that has no title bar and translucent system decor.

Theme_DeviceDefault_Panel

DeviceDefault theme for panel windows.

Theme_DeviceDefault_Wallpaper

DeviceDefault theme for windows that want to have the user's selected wallpaper appear behind them.

Theme_DeviceDefault_Wallpaper_NoTitleBar

DeviceDefault theme for windows that want to have the user's selected wallpaper appear behind them and without an action bar.

Theme_Dialog

Default theme for dialog windows and activities (on API level 10 and lower), which is used by the Dialog class.

Theme_Holo

Honeycomb holographic theme (dark version).

Theme_Holo_Dialog

Holo theme for dialog windows and activities, which is used by the Dialog class.

Theme_Holo_DialogWhenLarge

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_Holo_DialogWhenLarge_NoActionBar

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).

Theme_Holo_Dialog_MinWidth

Variant of Theme.Holo.Dialog that has a nice minimum width for a regular dialog.

Theme_Holo_Dialog_NoActionBar

Variant of Theme.Holo.Dialog that does not include a title bar.

Theme_Holo_Dialog_NoActionBar_MinWidth

Variant of Theme.Holo.Dialog.NoActionBar that has a nice minimum width for a regular dialog.

Theme_Holo_InputMethod

Default theme for holo style input methods, which is used by the InputMethodService class.

Theme_Holo_Light

Honeycomb holographic theme (light version).

Theme_Holo_Light_DarkActionBar

Variant of the holographic (light) theme that has a solid (opaque) action bar with an inverse color profile.

Theme_Holo_Light_Dialog

Light holo dialog themes Holo light theme for dialog windows and activities, which is used by the Dialogclass.

Theme_Holo_Light_DialogWhenLarge

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_Holo_Light_DialogWhenLarge_NoActionBar

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).

Theme_Holo_Light_Dialog_MinWidth

Variant of Theme.Holo.Light.Dialog that has a nice minimum width for a regular dialog.

Theme_Holo_Light_Dialog_NoActionBar

Variant of Theme.Holo.Light.Dialog that does not include a title bar.

Theme_Holo_Light_Dialog_NoActionBar_MinWidth

Variant of Theme.Holo.Light.Dialog.NoActionBar that has a nice minimum width for a regular dialog.

Theme_Holo_Light_NoActionBar

Variant of the holographic (light) theme with no action bar.

Theme_Holo_Light_NoActionBar_Fullscreen

Variant of the holographic (light) theme that has no title bar and fills the entire screen.

Theme_Holo_Light_NoActionBar_Overscan

Variant of the holographic (light) theme that has no title bar and fills the entire screen and extends into the display overscan region.

Theme_Holo_Light_NoActionBar_TranslucentDecor

Variant of the holographic (light) theme that has no title bar and translucent system decor.

Theme_Holo_Light_Panel

Default holo light theme for panel windows.

Theme_Holo_NoActionBar

Variant of the holographic (dark) theme with no action bar.

Theme_Holo_NoActionBar_Fullscreen

Variant of the holographic (dark) theme that has no title bar and fills the entire screen.

Theme_Holo_NoActionBar_Overscan

Variant of the holographic (dark) theme that has no title bar and fills the entire screen and extends into the display overscan region.

Theme_Holo_NoActionBar_TranslucentDecor

Variant of the holographic (dark) theme that has no title bar and translucent system decor.

Theme_Holo_Panel

Default holo dark theme for panel windows.

Theme_Holo_Wallpaper

Default holographic (dark) for windows that want to have the user's selected wallpaper appear behind them.

Theme_Holo_Wallpaper_NoTitleBar

Default holographic (dark) for windows that want to have the user's selected wallpaper appear behind them and without an action bar.

Theme_InputMethod

Default theme for input methods (on API level 10 and lower), which is used by the InputMethodService class.

Theme_Light

Theme for a light background with dark text on top.

Theme_Light_NoTitleBar

Variant of Theme_Light with no title bar

Theme_Light_NoTitleBar_Fullscreen

Variant of Theme_Light that has no title bar and no status bar.

Theme_Light_Panel

Default light theme for panel windows (on API level 10 and lower).

Theme_Light_WallpaperSettings

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.

Theme_NoDisplay

Default theme for activities that don't actually display a UI; that is, they finish themselves before being resumed.

Theme_NoTitleBar

Variant of Theme with no title bar

Theme_NoTitleBar_Fullscreen

Variant of Theme that has no title bar and no status bar.

Theme_NoTitleBar_OverlayActionModes

No title bar, but Action Mode bars will overlay application content instead of pushing it down to make room.

Theme_Panel

Default dark theme for panel windows (on API level 10 and lower).

Theme_Translucent

Theme for translucent activities (on API level 10 and lower).

Theme_Translucent_NoTitleBar

Variant of Theme_Translucent with no title bar

Theme_Translucent_NoTitleBar_Fullscreen

Variant of Theme_Translucent that has no title bar and no status bar

Theme_Wallpaper

Theme for windows that want to have the user's selected wallpaper appear behind them (for API level 10 and lower).

Theme_WallpaperSettings

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.

Theme_Wallpaper_NoTitleBar

Variant of Theme_Wallpaper that has no title bar

Theme_Wallpaper_NoTitleBar_Fullscreen

Variant of Theme_Wallpaper that has no title bar or status bar.

Theme_WithActionBar

Default theme with an Action Bar.

 



http://www.ppmy.cn/news/254312.html

相关文章

android样式和主题

样式(Style)是用来指定View或者window的外观和格式的一组属性集合。可以用来指定高度、内边距、字体颜色、字体大小、背景颜色等属性。样式定义在独立于布局文件的XML文件中。保证了内容和设计的独立性。 例如 <TextViewandroid:layout_width"fill_parent"andro…

Android风格与主题(style and theme)

Android xml风格和主题文件的编写&#xff0c;是涉及到整个程序界面美观的因素之一。较好的应用风格和主题&#xff0c;可以实现美观而统一的界面&#xff0c;这就犹如Web开发中的CSS。 Styles和Themes都是资源&#xff0c;存放在res/values 文件夹下。 什么是Style&#xff0…

android笔记:安卓自带的主题android:theme

• android:theme"android:style/Theme.Dialog" 将一个Activity显示为能话框模式 • android:theme"android:style/Theme.NoTitleBar" 不显示应用程序标题栏 • android:theme"android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标…

Android 主题 application theme

android:theme"Theme.Light ": 背景白色 android:theme"Theme.Black" : 背景黑色 android:theme"Theme.Panel ": 面板风格显示 android:theme"Theme.Light.Panel" : 平板风格显示 android:theme"Theme.Light.NoTitleBar" :…

Android theme

1.主题theme theme是应用的主题&#xff0c;或者说风格。通过设置主题可以改变应用的相关皮肤。 一般主题作用于整个应用&#xff0c;即对应的是application&#xff0c;但有时候部分界面需要特殊的处理&#xff0c;比如为一个特定的activity设置一个单独的皮肤。 <appli…

安卓手机主题软件_超小型软件,安卓手机必备

点击上方“软件严选”&#xff0c;设为星标 黑科技软件&#xff0c;第一时间送达 全能老司机已改名为软件严选&#xff0c;依旧每天为大家提供黑科技严选软件~ 由于公众号改版&#xff0c;现在的公众号消息已经不再按照时间顺序排送了。因此小伙伴们就很容易错过精彩内容。喜欢…

Android主题与样式

一、样式 样式是属性的集合&#xff0c;例如定义属性fontColor、fontSize、layout_width、layout_height等&#xff0c;以独立的资源文件存放在XML文件中&#xff0c;并设置样式的名称。 Android Style类似网页设计中的级联样式CSS设计思路&#xff0c;可以让设计与内容分离&…

Android 风格与主题(style and theme)

1、什么是Style&#xff0c;什么是Theme&#xff1f; Style 和 theme&#xff1a;是一个包含一种 或者 多种格式化 属性 的集合 &#xff0c;并且 style和theme都是资源&#xff0c;存放在res/values 文件夹下 即可&#xff0c;android提供了很多这样的默认资源。你可以来使用…