android:theme

?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.Wallpape r.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"[size=medium][/size]

时间: 2024-08-07 04:32:12

android:theme的相关文章

Android系统自带样式(android:theme)

From: http://blog.csdn.net/dawanganban/article/details/17732701 http://www.cnblogs.com/bluestorm/archive/2012/07/12/2588724.html android:theme="@android:style/Theme.Dialog" : Activity显示为对话框模式 android:theme="@android:style/Theme.NoTitleBar&q

Android - 错误:"No resource found that matches the given name android:Theme.Material"

Android - 错误:"No resource found that matches the given name android:Theme.Material" 本文地址: http://blog.csdn.net/caroline_wendy 错误: "No resource found that matches the given name 'android:Theme.Material.Light.DarkActionBar'" 原因是: build.g

Android Theme.AppCompat.Light的解决方法

styles.xml中<style name="AppBaseTheme" parent="Theme.AppCompat.Light">提示如下错误: error: Error retrieving parent for item: No resource found that matches the given name  'Theme.AppCompat.Light'. 解决方法: 将 <style name="AppBaseThe

android Theme启动APP闪屏处理

//1.设置背景图Theme <style name="Theme.AppStartLoad" parent="android:Theme">       <item name="android:windowBackground">@drawable/ipod_bg</item>       <item name="android:windowNoTitle">true</

Android Theme详细内容概述(转)

Android手机操作系统是一个开源的操作系统.其应用方式灵活方便,极受广大编程人员的喜爱.我们在这里就可以先来了解一下Android Theme的具体用法.Android Theme的用法与style的差不多,不过,具体还是有些不一样的 首先在values下新建一个theme.xml,用来定义需要的theme了,代码如下: Xml代码 < ?xml version="1.0" encoding="utf-8"?> < resources>

android布局 android:Theme使用

主题Theme就是用来设置界面UI风格,可以设置整个应用或者某个活动Activity的界面风格.在Android SDK中内置了下面的Theme,可以按标题栏Title Bar和状态栏Status Bar是否可见来分类: [html] view plaincopyprint? ?android:theme="@android:style/Theme.Dialog"   将一个Activity显示为能话框模式 ?android:theme="@android:style/The

Android - 错误:&quot;No resource found that matches the given name android:Theme.Material&quot;

Android - 错误:"No resource found that matches the given name android:Theme.Material" 本文地址: http://blog.csdn.net/caroline_wendy 错误: "No resource found that matches the given name 'android:Theme.Material.Light.DarkActionBar'" 原因是: build.g

Android Theme.AppCompat 中,你应该熟悉的颜色属性

创建一个 Android 工程,第一步,也是必不可少的一步,就是定制 Application 主题样式.利用系统诸多属性定义 App 各种 View 的默认样式,能够减少 layout 文件中很多重复性的属性设置代码.在开发者官网 R.attr 栏目中,Google 列出了所有 Android SDK 中的系统级属性.如何取舍,如何区分,又有哪些常用的属性呢?本文就来列举颜色相关的一些属性介绍,以供参考. 通常,在 res/values/styles.xml 文件中定义的 application

项目引入android-support-v7-appcompat遇到的问题,no resource found that matches the given name &#39;android:Theme.AppCompat.Light&#39;

一.问题 今天准备使用v7包中的ToolBar来用,但是在styles.xml中引入Theme.AppCompat.Light的时候,报错“no resource found that matches the given name 'android:Theme.AppCompat.Light'”. 二.解决 1.首先搜索了对应的报错,有很多回答需要导入android-support-v7-appcompat包,引入了几次,还是没有效果.终于功夫不负有心人,偶然看到一个博客中提到,需要将工程和an