Tencent / QMUI_Android

提高 Android UI 开发效率的 UI 库
http://qmuiteam.com/android
Other
14.4k stars 2.67k forks source link

主题 #783

Open snpmyn opened 4 years ago

snpmyn commented 4 years ago

把项目的 theme 的 parent 指向 QMUI.Compat,至此,QMUI 可以正常工作。

如果使用MaterialDesign,也要求配置主题。那么不就冲突了吗?这个有影响吗?

cgspine commented 4 years ago

如果必须是其它父 theme,可以将 QMUI theme 里的 item 项全部 拷贝到 自己的 theme 下。 并且 QMUI 的父级 theme 是 Theme.AppCompat.DayNight, 在 Android 5 以上默认就是 MaterialDesign 的吧。

snpmyn commented 4 years ago

如果必须是其它父 theme,可以将 QMUI theme 里的 item 项全部 拷贝到 自己的 theme 下。 并且 QMUI 的父级 theme 是 Theme.AppCompat.DayNight, 在 Android 5 以上默认就是 MaterialDesign 的吧。

你说的也是一种方法。但是在Android 5以上没有默认。需要手动修改。