第一范文网 - 专业文章范例文档资料分享平台

Android Threme使用总结

来源:用户分享 时间:2025/8/6 8:46:44 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

我将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 效果图如下:

搜索更多关于: Android Threme使用总结 的文档
Android Threme使用总结.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c2ep33110j29pg7z7ha07_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top