Android改Activity样式(theme)
来源:互联网 发布:c如何定义一维数组 编辑:程序博客网 时间:2024/06/06 14:10
在配置文件中找到Application中theme标签,然后改之。这是改整个app的主题。也可以在配置文件改每个Activity的theme
系统自带:
@android:style/Theme.Black //背景黑色-有标题-非全屏
@android:style/Theme.Black.NoTitleBar //背景黑色-无标题-非全屏
@android:style/Theme.Black.NoTitleBar.Fullscreen //背景黑色-无标题-全屏显示
@android:style/Theme.Dialog //对话框显示
@android:style/Theme.InputMethod
@android:style/Theme.Light //背景白色-有标题-非全屏
@android:style/Theme.Light.NoTitleBar //背景白色-无标题-非全屏
@android:style/Theme.Light.NoTitleBar.Fullscreen //背景白色-无标题-全屏显示
@android:style/Theme.Light.Panel
@android:style/Theme.Light.WallpaperSettings //背景透明
@android:style/Theme.NoDisplay
@android:style/Theme.Translucent.NoTitleBar.Fullscreen //半透明、无标题栏、全屏
@android:style/Theme.Wallpaper.NoTitleBar.Fullscreen
自定义:
例如:
<style name="style"> <item name="android:layout_gravity">center_vertical</item> <item name="android:layout_marginLeft">20dip</item> <item name="android:singleLine">true</item> <item name="android:textColor">@color/black</item> <item name="android:textSize">23sp</item> </style>
0 0
- Android改Activity样式(theme)
- Activity样式android:theme=“*”
- android 自带主题样式(theme )
- Android style(样式), theme(主题)资源
- Android Theme 样式 展示
- android Activity的 theme
- Activity设置Theme为Dialog样式
- android自带样式 theme
- android自带样式 theme
- Android-自带Theme样式
- Android Theme即样式 简介
- android自带样式 theme
- Android Theme主题样式一键换肤
- Android系统自带样式(android:theme)(转)
- Android系统自带样式(android:theme)(转)
- Android系统自带样式(android:theme)(转)
- Android系统自带样式(android:theme)(转)
- Android系统自带样式(android:theme)(转)
- 判断事务结束方法
- 看完了张小龙的 2359 条饭否日记
- rac问题思考总结
- 回文判断
- BDL 百度研究院大数据实验室的吴海山,做一名数据科学家有怎样的体验,问我吧!
- Android改Activity样式(theme)
- nginx 设置匿名http正向代理
- 3831: [Poi2014]Little Bird|DP|单调队列
- 你经常需要的功能——Android篇(不断更新中...)
- 我读Mongoose源码----程序框架
- Java BIO、NIO、AIO 学习
- linux编程笔记(1)-内存管理介绍
- 020 小记一次网络故障处理
- 奕新集团RAC 11g 生产库环境(待完善无图)