實現夜間模式,不需要recreate,不閃屏

通過資源 id 映射,回調自定義 ThemeChangeListener 接口來處理日間/夜間模式的切換。 在values下面colors.xml裏面 [html] view plain copy <?xml version="1.0" encoding="utf-8"?>     <resources>            <color name="colorPrimary">#3F51B5<
相關文章
相關標籤/搜索