实现夜间模式,不需要recreate,不闪屏

通过资源 id 映射,回调自定义 ThemeChangeListener 接口来处理日间/夜间模式的切换。 在values下面colors.xml里面 [html] view plain copy <?xml version="1.0" encoding="utf-8"?>     <resources>            <color name="colorPrimary">#3F51B5<
相关文章
相关标签/搜索