Android Theme的设置
来源:互联网 发布:python 斜杠 替换 编辑:程序博客网 时间:2024/05/24 01:40
在AndroidManifest.xml文件中,可以对每一个Activity设置android:theme。theme的设置可以设置为系统自带的格式,也可以自定义格式。
A: 系统自带格式
可以在单个Activity里设置,也可以在applicaiton里全局设置。比如:
<activity
android:screenOrientation="portrait"
android:name=".ui.RegisterActivity"
android:theme="@android:style/Theme.NoTitleBar">
</activity>
B:也可以自定义
在activity里加入 android:theme="@style/MyTitleBar" 再在 style.xml里加入:
<style name="MyTitleBar" parent="android:Theme">
</style>
<style name="MyTitleBackground" parent="android:TextAppearance.WindowTitle">
</style>
</style>
这里的parent是继承于android:Theme,所以在下面的样式里,只能是window开头的样式才起作用,所有样式请参考\sdk\docs\reference\android\R.attr.html。
也可以设置windowTitleBackgroundSty
- Android Theme的设置
- Android Theme的设置
- Android Theme的设置
- Android Theme的设置
- Android Theme的设置
- Android Theme的设置
- Android Theme设置
- Android theme 设置
- Android的Theme的设置和Style的使用
- 设置android:theme导致死机
- Android 设置theme中的坑
- Android学习笔记之Theme主题的修改设置
- android的Theme
- android Theme的使用
- android的Theme
- 关于android的theme
- android 的主题theme
- Android Theme的使用
- android L 需要升级jdk7 才能正确编译
- 黑马程序员----C语言条件语句
- JSP中pageContext、request、session、application域中存取值
- 理解 PHP 中的 Streams
- 高效JQuery代码编写
- Android Theme的设置
- 洗牌算法
- 原创诗集一
- SQL Server, cannot alter the user 'dbo', 如何解决SQL Server不能更改dbo问题
- linux下的目录解析
- java 发送http请求
- JqGrid中文文档之TreeGrid
- 奇数魔方矩阵的实现
- 十条有用的 GoLang技术