当前位置:首页 > Android Threme使用总结
我将api中theme分为两种类型来实验;一种是api Level为11的,一种是11以下的。level为11的用的是3.0的模拟器,11以下用的是N1,2.3.3的系统。
这里我是统一将Theme写在AndroidManifest.xml中定义,如下图:
先总结level为11以下的Theme: 1、Theme:
它的意思为默认状态,即如果Theme这里不填任何属性的时候,默认为Theme。 api原文为:
The default system theme. This is the theme used for activities that have not explicitly set their own theme.
You can count on this being a dark background with light text on top, but should try to make no other assumptions about its appearance. In particular, the text inside of widgets using this theme may be
completely different, with the widget container being a light color and the text on top of it a dark color. 效果图如下:
1.1、Theme_NoDisplay
它的意思为任何都不显示。比较适用于只是运行了activity,但未显示任何东西。 api原文如下:
Default theme for activities that don’t actually display a UI; that is, they finish themselves before being resumed. 效果图如下:
1.2、Theme_NoTitleBar
意思为:背景主题的没有标题栏的样式,默认如果没有设置的话,显示黑背景 api原文:
Variant of the default (dark) theme with no title bar 效果图如下:
1.3、Theme_NoTitleBar_Fullscreen
意思为:背景主题的没有标题栏且全屏的样式,默认为黑背景 api原文:
Variant of the default (dark) theme that has no title bar and fills the entire screen 效果图如下:
共分享92篇相关文档