Material Design 系列 控制项目全局样式
来源:互联网 发布:js注释规范 编辑:程序博客网 时间:2024/06/06 05:39
————————–1.MaterialDesign控制项目全局样式——————————-
为什么要用appcompat项目,因为里面是谷歌精心准备的—解决android碎片化开发的问题,让我们app编译出来在
各种高低版本之间、不同的厂商生产的ROM之间显示出来的效果UI控件等有比较一一致的体验。
1.引入appcompat-v7项目(包括了android-support-v7-appcompat.jar和资源文件)
2.写自己的全局样式:
<!-- Application theme. --><style name="AppTheme" parent="AppBaseTheme"> <!-- All customizations that are NOT specific to a particular API-level can go here. --> <item name="android:textColor">@color/mytextcolor</item> <item name="colorPrimary">@color/colorPrimary_pink</item> <item name="colorPrimaryDark">@color/colorPrimary_pinkDark</item> <item name="android:windowBackground">@color/background</item><item name="colorAccent">@color/accent_material_dark</item> <!-- 设置虚拟导航栏背景颜色 --> <item name="android:navigationBarColor">@color/colorPrimary_pink</item></style>colorPrimary:主色,colorPrimaryDark:主色--深色,一般可以用于状态栏颜色、底部导航栏colorAccent:(代表各个控件的基调颜色--CheckBox、RadioButton、ProgressBar等等)"android:textColor":当前所有的文本颜色
0 0
- Material Design 系列 控制项目全局样式
- Material Design控制项目全局样式(二)
- MaterialDesign控制项目全局样式
- Android Material Design系列之主题样式介绍说明等
- Android Material Design系列之主题样式介绍说明等
- Material Design 系列 Transition
- Material Design 系列 Transition
- Material Design系列--DrawerLayout
- Material Design之主题样式
- Material Design开发文章系列
- Android 5.0 Material Design系列
- Material Design系列--Toolbar详细
- Material Design系列-- BottomNavigationView(转载)
- Material Design系列之SnackBar
- Material Design系列之TextInputLayout
- Material Design 系列之 Toolbar
- Material Design开源项目
- Material Design开发文章系列3:Material Design Check List
- 区分指向对象的常指针和常对象的指针
- Hibernate增删改查
- linux 用awk gsub将一行变成多行
- KMP算法详解
- 代理模式
- Material Design 系列 控制项目全局样式
- jquery动态增减选项卡
- Navicat for mysql 导入导出数据库
- React组件生命周期过程说明
- StackExchange.Redis通用封装类分享
- MySQL实战(七)数据库开发规范
- 解决 has incomplete type
- 游戏程序开发必知的10大基础实用算法及其讲解
- Android状态栏微技巧,带你真正理解沉浸式模式