Android 常用换肤方式以及原理分析-LayoutInflater.Factory

常用方法 1.通过Theme切换主题 通过在setContentView之前设置Theme实现主题切换。 在styles.xml定义一个夜间主题和白天主题: <style name="LightTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="colorPrimary">@color/colorPrimary<
相关文章
相关标签/搜索