主题Theme就是用来设置界面UI风格,可以设置整个应用或者某个活动Activity的界面风格。在Android SDK中内置了下面的Theme,可以按标题栏Title Bar和状态栏Status Bar是否可见来分类:
- •android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式
-
•android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
-
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
-
•android:theme="Theme.Light" 背景为白色
-
•android:theme="Theme.Light.NoTitleBar" 白色背景并无标题栏
-
•android:theme="Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
-
•android:theme="Theme.Black" 背景黑色
-
•android:theme="Theme.Black.NoTitleBar" 黑色背景并无标题栏
-
•android:theme="Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
-
•android:theme="Theme.Wallpaper" 用系统桌面为应用程序背景
-
•android:theme="Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
-
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
-
•android:theme="Translucent" 半透明
-
•android:theme="Theme.Translucent.NoTitleBar" 半透明、无标题栏
-
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen" 半透明、无标题栏、全屏
-
•android:theme="Theme.Panel"
-
•android:theme="Theme.Light.Panel"
- •android:theme="@android:style/Theme.Dialog"将一个Activity显示为能话框模式
-
•android:theme="@android:style/Theme.NoTitleBar"不显示应用程序标题栏
-
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen"不显示应用程序标题栏,并全屏
-
•android:theme="Theme.Light"背景为白色
-
•android:theme="Theme.Light.NoTitleBar"白色背景并无标题栏
-
•android:theme="Theme.Light.NoTitleBar.Fullscreen"白色背景,无标题栏,全屏
-
•android:theme="Theme.Black"背景黑色
-
•android:theme="Theme.Black.NoTitleBar"黑色背景并无标题栏
-
•android:theme="Theme.Black.NoTitleBar.Fullscreen"黑色背景,无标题栏,全屏
-
•android:theme="Theme.Wallpaper"用系统桌面为应用程序背景
-
•android:theme="Theme.Wallpaper.NoTitleBar"用系统桌面为应用程序背景,且无标题栏
-
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen"用系统桌面为应用程序背景,无标题栏,全屏
-
•android:theme="Translucent"半透明
-
•android:theme="Theme.Translucent.NoTitleBar"半透明、无标题栏
-
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen"半透明、无标题栏、全屏
-
•android:theme="Theme.Panel"
-
•android:theme="Theme.Light.Panel"
•android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式
•android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
•android:theme="Theme.Light" 背景为白色
•android:theme="Theme.Light.NoTitleBar" 白色背景并无标题栏
•android:theme="Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
•android:theme="Theme.Black" 背景黑色
•android:theme="Theme.Black.NoTitleBar" 黑色背景并无标题栏
•android:theme="Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
•android:theme="Theme.Wallpaper" 用系统桌面为应用程序背景
•android:theme="Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
•android:theme="Translucent" 半透明
•android:theme="Theme.Translucent.NoTitleBar" 半透明、无标题栏
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen" 半透明、无标题栏、全屏
•android:theme="Theme.Panel"
•android:theme="Theme.Light.Panel"
这些主题可以应用到整个应用Application范围或者某个活动Activity范围中。
应用Application范围
在AndroidManifest.xml中的application节点中设置theme属性,主题theme应用到整个应用程序中。
<application
Android:icon=”@drawable/icon”
Android:icon=”@string/app_name”
Android:icon=”@android:style/ Theme.Black.NoTitleBar”>
活动Activity范围
使用java代码或者在AndroidManifest.xml中对活动Activity的主题进行设置,主题仅应用到当前活动中。
在AndroidMainifest.xml设置方法:
<activity
android:name=“.About”
android:label=“@string/app_name”
android:theme=“@android:style/ Theme.Black.NoTitleBar” >
使用java代码进行设置,在当前活动Activity的onCreate中进行设置:
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setTheme(android.R.style.Theme_Translucent_NoTitleBar);
setContentView(R.layout.main);
}
文章来自:
http://blog.csdn.net/kaiwii/article/details/7825517
主题Theme就是用来设置界面UI风格,可以设置整个应用或者某个活动Activity的界面风格。在Android SDK中内置了下面的Theme,可以按标题栏Title Bar和状态栏Status Bar是否可见来分类:
- •android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式
-
•android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
-
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
-
•android:theme="Theme.Light" 背景为白色
-
•android:theme="Theme.Light.NoTitleBar" 白色背景并无标题栏
-
•android:theme="Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
-
•android:theme="Theme.Black" 背景黑色
-
•android:theme="Theme.Black.NoTitleBar" 黑色背景并无标题栏
-
•android:theme="Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
-
•android:theme="Theme.Wallpaper" 用系统桌面为应用程序背景
-
•android:theme="Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
-
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
-
•android:theme="Translucent" 半透明
-
•android:theme="Theme.Translucent.NoTitleBar" 半透明、无标题栏
-
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen" 半透明、无标题栏、全屏
-
•android:theme="Theme.Panel"
-
•android:theme="Theme.Light.Panel"
- •android:theme="@android:style/Theme.Dialog"将一个Activity显示为能话框模式
-
•android:theme="@android:style/Theme.NoTitleBar"不显示应用程序标题栏
-
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen"不显示应用程序标题栏,并全屏
-
•android:theme="Theme.Light"背景为白色
-
•android:theme="Theme.Light.NoTitleBar"白色背景并无标题栏
-
•android:theme="Theme.Light.NoTitleBar.Fullscreen"白色背景,无标题栏,全屏
-
•android:theme="Theme.Black"背景黑色
-
•android:theme="Theme.Black.NoTitleBar"黑色背景并无标题栏
-
•android:theme="Theme.Black.NoTitleBar.Fullscreen"黑色背景,无标题栏,全屏
-
•android:theme="Theme.Wallpaper"用系统桌面为应用程序背景
-
•android:theme="Theme.Wallpaper.NoTitleBar"用系统桌面为应用程序背景,且无标题栏
-
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen"用系统桌面为应用程序背景,无标题栏,全屏
-
•android:theme="Translucent"半透明
-
•android:theme="Theme.Translucent.NoTitleBar"半透明、无标题栏
-
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen"半透明、无标题栏、全屏
-
•android:theme="Theme.Panel"
-
•android:theme="Theme.Light.Panel"
•android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式
•android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
•android:theme="Theme.Light" 背景为白色
•android:theme="Theme.Light.NoTitleBar" 白色背景并无标题栏
•android:theme="Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
•android:theme="Theme.Black" 背景黑色
•android:theme="Theme.Black.NoTitleBar" 黑色背景并无标题栏
•android:theme="Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
•android:theme="Theme.Wallpaper" 用系统桌面为应用程序背景
•android:theme="Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
•android:theme="Translucent" 半透明
•android:theme="Theme.Translucent.NoTitleBar" 半透明、无标题栏
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen" 半透明、无标题栏、全屏
•android:theme="Theme.Panel"
•android:theme="Theme.Light.Panel"
这些主题可以应用到整个应用Application范围或者某个活动Activity范围中。
应用Application范围
在AndroidManifest.xml中的application节点中设置theme属性,主题theme应用到整个应用程序中。
<application
Android:icon=”@drawable/icon”
Android:icon=”@string/app_name”
Android:icon=”@android:style/ Theme.Black.NoTitleBar”>
活动Activity范围
使用java代码或者在AndroidManifest.xml中对活动Activity的主题进行设置,主题仅应用到当前活动中。
在AndroidMainifest.xml设置方法:
<activity
android:name=“.About”
android:label=“@string/app_name”
android:theme=“@android:style/ Theme.Black.NoTitleBar” >
使用java代码进行设置,在当前活动Activity的onCreate中进行设置:
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setTheme(android.R.style.Theme_Translucent_NoTitleBar);
setContentView(R.layout.main);
}
主题Theme就是用来设置界面UI风格,可以设置整个应用或者某个活动Activity的界面风格。在Android SDK中内置了下面的Theme,可以按标题栏Title Bar和状态栏Status Bar是否可见来分类:
- •android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式
-
•android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
-
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
-
•android:theme="Theme.Light" 背景为白色
-
•android:theme="Theme.Light.NoTitleBar" 白色背景并无标题栏
-
•android:theme="Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
-
•android:theme="Theme.Black" 背景黑色
-
•android:theme="Theme.Black.NoTitleBar" 黑色背景并无标题栏
-
•android:theme="Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
-
•android:theme="Theme.Wallpaper" 用系统桌面为应用程序背景
-
•android:theme="Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
-
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
-
•android:theme="Translucent" 半透明
-
•android:theme="Theme.Translucent.NoTitleBar" 半透明、无标题栏
-
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen" 半透明、无标题栏、全屏
-
•android:theme="Theme.Panel"
-
•android:theme="Theme.Light.Panel"
- •android:theme="@android:style/Theme.Dialog"将一个Activity显示为能话框模式
-
•android:theme="@android:style/Theme.NoTitleBar"不显示应用程序标题栏
-
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen"不显示应用程序标题栏,并全屏
-
•android:theme="Theme.Light"背景为白色
-
•android:theme="Theme.Light.NoTitleBar"白色背景并无标题栏
-
•android:theme="Theme.Light.NoTitleBar.Fullscreen"白色背景,无标题栏,全屏
-
•android:theme="Theme.Black"背景黑色
-
•android:theme="Theme.Black.NoTitleBar"黑色背景并无标题栏
-
•android:theme="Theme.Black.NoTitleBar.Fullscreen"黑色背景,无标题栏,全屏
-
•android:theme="Theme.Wallpaper"用系统桌面为应用程序背景
-
•android:theme="Theme.Wallpaper.NoTitleBar"用系统桌面为应用程序背景,且无标题栏
-
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen"用系统桌面为应用程序背景,无标题栏,全屏
-
•android:theme="Translucent"半透明
-
•android:theme="Theme.Translucent.NoTitleBar"半透明、无标题栏
-
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen"半透明、无标题栏、全屏
-
•android:theme="Theme.Panel"
-
•android:theme="Theme.Light.Panel"
•android:theme="@android:style/Theme.Dialog" 将一个Activity显示为能话框模式
•android:theme="@android:style/Theme.NoTitleBar" 不显示应用程序标题栏
•android:theme="@android:style/Theme.NoTitleBar.Fullscreen" 不显示应用程序标题栏,并全屏
•android:theme="Theme.Light" 背景为白色
•android:theme="Theme.Light.NoTitleBar" 白色背景并无标题栏
•android:theme="Theme.Light.NoTitleBar.Fullscreen" 白色背景,无标题栏,全屏
•android:theme="Theme.Black" 背景黑色
•android:theme="Theme.Black.NoTitleBar" 黑色背景并无标题栏
•android:theme="Theme.Black.NoTitleBar.Fullscreen" 黑色背景,无标题栏,全屏
•android:theme="Theme.Wallpaper" 用系统桌面为应用程序背景
•android:theme="Theme.Wallpaper.NoTitleBar" 用系统桌面为应用程序背景,且无标题栏
•android:theme="Theme.Wallpaper.NoTitleBar.Fullscreen" 用系统桌面为应用程序背景,无标题栏,全屏
•android:theme="Translucent" 半透明
•android:theme="Theme.Translucent.NoTitleBar" 半透明、无标题栏
•android:theme="Theme.Translucent.NoTitleBar.Fullscreen" 半透明、无标题栏、全屏
•android:theme="Theme.Panel"
•android:theme="Theme.Light.Panel"
这些主题可以应用到整个应用Application范围或者某个活动Activity范围中。
应用Application范围
在AndroidManifest.xml中的application节点中设置theme属性,主题theme应用到整个应用程序中。
<application
Android:icon=”@drawable/icon”
Android:icon=”@string/app_name”
Android:icon=”@android:style/ Theme.Black.NoTitleBar”>
活动Activity范围
使用java代码或者在AndroidManifest.xml中对活动Activity的主题进行设置,主题仅应用到当前活动中。
在AndroidMainifest.xml设置方法:
<activity
android:name=“.About”
android:label=“@string/app_name”
android:theme=“@android:style/ Theme.Black.NoTitleBar” >
使用java代码进行设置,在当前活动Activity的onCreate中进行设置:
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setTheme(android.R.style.Theme_Translucent_NoTitleBar);
setContentView(R.layout.main);
}
分享到:
相关推荐
主题Theme就是用来设置界面UI风格,可以设置整个应用或者某个活动Activity的界面风格。在Android SDK中内置了下面的Theme,可以按标题栏Title Bar和状态栏Status Bar是否可见来分类: 代码如下: android:theme=”@...
Android Theme界面换肤应用实例,也就是更改系统主题风格,可在“应用透明背景的主题”、“应用布景主题1”、“应用布景主题2”三种皮肤风格之间切换,Android换肤对Android手机来说是再简单不过的功能了,个性化...
本文实例讲述了Yii2创建多界面主题(Theme)的方法。分享给大家供大家参考,具体如下: Yii2界面主题上的设计总体上和Yii1.x保持一致,区别在于两个地方: 1. 由于Yii2引入了独立的视图(View)类,因此界面主题...
kiran-gtk-theme 软件包包含 Kiran 桌面的标准主题,它为窗口边框和 GTK+ 应用程序提供了默认外观。
Odoo的界面主题资源是一种可以改变Odoo系统界面外观的资源,提供了多种不同的风格和颜色方案,让用户可以根据自己的需求和喜好来选择和使用。 以下是一些Odoo界面主题资源的介绍: Odoo官方主题:Odoo官方主题是...
实心,正方形,正方形实心) konsole 配色方案kvantum 主题(常规、纯色) 等离子配色方案等离子桌面主题启动画面安装Archlinux - 手动的$ cd cherry-kde-theme$ ./install.sh 这个主题使用作为它的应用程序风格。...
使用灵活的API来构建一流的开发人员人体工程学,从而构建自定义组件库,设计系统,Web应用程序,Gatsby主题等。 文档: : (v0.6.0-alpha)文档: : //dev.theme-ui.com 专为设计系统,白色标签,主题和其他将...
vc美化您的应用程序的外观界面(源码)超酷界面
黑暗主题应用 我开始进行此操作,以便我或其他任何人都可以轻松地在其程序中拥有一个漂亮的主题,而无需编写任何其他代码。 当前有4个主题:浅色,彩色浅色,深色和彩色深色。 当您将鼠标悬停在控件上或选择它们时,...
原因是我们给改Activity/Application设置的主题引起的,因为该主题相对应的windowBackground等背景被设置成了白色或者黑色,且当我们进入app的第一个界面的时候不是马上就执行onCreate所以会造成先白屏或黑屏一下再...
Phone Theme Shop3.0,包含无数可以在GO桌面、GO短信、GO联系人等平台上应用的精美主题
Eclipse中直接应用Sublime主题界面
语言:English 这是一个受Material Theme启发的主题,用于升华文字,将Material ...底部,等待浏览器重新启动现在,打开devtools转到设置(齿轮图标)>实验,单击允许自定义ui主题重新加载devtools,以使主题完全应用
您可以直接通过Obsidian应用程序安装Minimal Theme及其配套插件。 免责声明 该主题按原样提供,并且专注于我在Mac OS上对Obsidian的个人使用。 因此,它没有在Obsidian的所有操作系统和功能中经过全面测试。 该...
[新功能] 后台白色清爽主题,可通过设置 ADMIN_THEME=default 切换后台主题 [新功能] 管理登录背景 AdminLoginBackground [新功能] 后台登录提示 AdminLoginNotice 功能 [新功能] 日志查看器 LogViewer 功能 [新功能...
特征:-搜索主题的每个文件内的任何文本-快速搜索-友好的用户界面-正则表达式友好用法:1.登录到Shopify商店; 2.导航至在线商店>主题>操作>编辑代码; 3.您会在主题编辑器上方看到一个文本框加载; 4.输入您要查找...
制作应用主题(VSCode 主题) 基于的轻松、 。 截图 HTML JavaScript CSS 用户界面 关于这个主题 该主题基于的 ,该主题基于Atom的原始Hybrid Next 主题。 我只对语法高亮进行了微小的更改,但对 UI 元素(活动栏...
特征使用Webmin / Usermin UI 的可配置主题选项,能够嵌入用户徽标、自定义样式和脚本查看和编辑文件时代码高亮显示Command Shell模块的下拉终端界面快速访问的热键和收藏夹通知滑块可即时访问推送的系统消息对文件...
使用Flutter构建既可运行Android设备又可运行iOS设备的混乱/聊天应用程序用户界面,也具有深色和浅色主题。我们总共创建了4个屏幕,所有屏幕均支持“深色主题”和“浅色主题”。首先,我们设计一个欢迎屏幕,其中...