-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如何切换MaterialComponents主题色 #11
Comments
现在在宿主App里定义了一个与yellow皮肤包对应的AppTheme_Yellow主题色,当切换皮肤包的同时,宿主同时执行切换主题AppTheme_Yellow |
MaterialComponents 的问题正在调查 |
FloatingActionButton不是基础View,如果要使其支持换肤。可以参考Demo中的CustomViewCompat类,分别实现IExpandedFactory2 与IThemeSkinExecutorBuilder |
我在皮肤包里定义了
<color name="colorPrimary">#FFFFFF</color>
<color name="colorPrimaryDark">#FF9800</color>
<color name="colorAccent">#FF9800</color>
但是切换主题时MaterialComponents并没有更改主题颜色,在代码中设置
setTheme(R.style.AppTheme);
也不起作用。直接更改
colorAccent
可以很方便的使整个app的MaterialComponents颜色统一,但目前我无法解决The text was updated successfully, but these errors were encountered: