Comments (4)
回答问题:
1,CollapsingToolbarLayout需要设置setContentScrimColor的颜色,这是design库自己的使用方式,和框架无关,demo中之后会补充相关例子。
2,状态栏的颜色设置不同android版本有不同的处理方案,请自行google或github
3,框架的的颜色替换规则就是在Application中进行设置的,你指的默认值是?
from magicasakura.
1,第2个问题状态栏颜色,如果集成前框架前没有处理状态栏,切换主题只设置当前activity状态栏。会有风格不统一的问题。能否框架给个可选项的api。 2,第三个问题意思是,设置默认主题的颜色,和框架怎么自定义颜色,更改哪些颜色能否给个具体的说明或者demo。 thx~~
from magicasakura.
问题1: 如果集成框架前没有处理状态栏着色,请自行google。如果之前处理了状态栏,只需调用框架的提供的方法进行相应的着色即可。框架本身不处理状态栏问题。
问题2: 目前设置主题的默认色只能在res/values/colors.xml中,替换规则是在Application中实现,具体见 README中的STEP1和STEP2。
至于能改哪些颜色完全是根据app自己的需求而定,并无任何约束,框架只是负责根据规则替换染色,取色。
from magicasakura.
已解决问题,谢谢大神
from magicasakura.
Related Issues (20)
- TintImageView使用VectorDrawable 设置tint切换主题无法生效问题。 HOT 5
- 可以自定义支持其他组件么? HOT 1
- F ragment 里面的tooloar不会实时刷新 HOT 1
- fragment里面的就没有及时更新。必须重启才有效 HOT 1
- shape文件怎么处理呢 HOT 1
- 我想知道能不能扩展一下。支持drawable HOT 2
- TabLayout不支持 HOT 2
- 对话框不支持alertDialog HOT 1
- 对Databinding 支持不友好。 HOT 1
- 支持WindowManager么? HOT 4
- 添加IntButton在布局的时候报错 HOT 5
- dataBinding在布局添加TintToolbar运行报错 HOT 3
- 升级android studio 3报错 HOT 1
- 依赖方式compile 'com.bilibili:magicasakura:0.1.8@aar'会报错 HOT 1
- 请问如何自定义主题色 HOT 2
- drawableTintMode HOT 5
- 引入库后导致string文件中占位符异常
- android Q适配问题
- About dark mode.
- Java代码中手动设置颜色导致主题切换颜色不刷新问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from magicasakura.