在android的sdk 安装目录data\res\values\themes.xml 里系统定义好的主题,可以直接使用,在AndroidManifest.xml中定义。如果整个工程用一个主题就在<application android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@android:style/Theme.Wallpaper" > application 标签中定义。如果在单个activety中用不同主题, <activity android:name=".secondActive" android:label="第二页"
android:theme="@android:style/Theme.Black" >

如果不小心删除了工程文件可以这样找回来 在工程目录,右键,有个Restore from Local History,选择要回复的文件。

下面是从网上找到的主题,可以自己去themes.xml 中看。下面的前三个之外直接复制就会出错。@是说明系统已经定义过的,@android:style/ 是必须带上的。

?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"

转自:http://lzy3169421.blog.163.com/blog/static/1135452772011811454797/

感谢:http://www.mangocd.com/

更多相关文章

  1. 系统签名apk--转
  2. Android LinearLayout等配置圆角背景
  3. android wifi子系统
  4. Android内核开发:图解Android系统的启动过程
  5. 在Android平台上开发移动应用程序(毕业设计_外文翻译)
  6. Android 改变标题栏的背景色

随机推荐

  1. SparseArray 那些事儿(带给你更细致的分析
  2. Android(安卓)7.0 SEAndroid(安卓)app权
  3. Android中如何实现定时任务
  4. 下载Android单个项目源码的方法
  5. View、Window、WindowManager-vsync信号
  6. Android适配之dimens适配终极攻略(实际项
  7. Android(安卓)Watchdog框架看门狗解析、
  8. Android(安卓)依赖注入:Dagger 实例讲解(De
  9. android parcelable 以及android studio
  10. Android(安卓)SugarORM(1)