Android开发笔记: 系统样式Android:theme-- 【图文并茂】

来源:互联网 发布:dwg文件格式java解析 编辑:程序博客网 时间:2024/06/17 18:07


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"



修改样式,在AndroidManifest.xml修改theme即可


我的app默认样式




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"