Android换肤_MultipleTheme
来源:互联网 发布:淘宝隐藏优惠券插件 编辑:程序博客网 时间:2024/06/05 17:56
MultipleTheme
真正的支持无缝换肤/夜间模式的Android框架,配合theme和换肤控件框架可以做到无缝切换换肤(无需重启应用和当前页面)。
该应用框架可以实现无缝换肤/切换夜间模式的需求,需要在换肤/切换夜间模式的界面只需要使用框架里的自封装控件,其他界面的控件使用原生android控件即可。
This framework of Android app support multiple theme(such as day/night mode) and needn’t finish current application or current activity.
第一步:在项目的attr.xml声明自定义属性(各种模式都会用到的属性)
Setup 1:declare attribute in attr.xml
第二步:在项目的style.xml指定各种模式主题下的自定义属性值
Setup 2:declare attribute in style.xml
第三步:在页面布局文件里使用自定义属性值
Setup 3:use attribute in layout
第四步:在基类的onCreate方法里添加切换主题模式的逻辑代码
Setup 4:add the code of switch theme-mode in base activity
第五步:调用工具类方法切换主题模式
Setup 5:switch theme-mode in code
第六步:针对切换主题模式时需要立即更新页面ui的页面,需要使用框架里的封装控件
Setup 6:use customize-widget of framework at the activity that need update ui when switch theme-mode.
demo网址:https://github.com/dersoncheng/MultipleTheme.git
0 0
- Android换肤_MultipleTheme
- Android应用换肤
- android 换肤
- android 换肤
- Android换肤apk
- android 换肤 .
- Android应用换肤
- android换肤
- android换肤
- android换肤机制
- Android应用换肤
- android换肤实现
- Android换肤技术
- Android换肤Demo
- Android换肤系列
- Android换肤
- Android换肤框架
- android动态换肤
- ChucK初步(6)
- 蓝桥杯练习-特殊的数字
- 什么是solr客户端 他的作用 保留理解
- centos7 安装cinnamon桌面
- 创建视图时出现权限不足
- Android换肤_MultipleTheme
- hibernate三种状态
- 个人如何获取微信小程序的APPID
- Eclipse 开发C++ 程序 (三) 支持 C++ 11
- python--OS模块,文件系统
- 机器学习--logistic回归
- C语言参数通用缩写表
- 简单的图像频域滤波和频域锐化的matlab实现
- myBaits+mySQL 获取自增主键