Open Mr-Zheng-yz opened 2 years ago
如在代码中为TintTextView设置文字颜色: textView3.setTextColor(ThemeUtils.getColorById(textView3.getContext(), R.color.theme_color_primary)); 主题切换后文字颜色不会主动刷新。
textView3.setTextColor(ThemeUtils.getColorById(textView3.getContext(), R.color.theme_color_primary));
需要自己实现switchcolor替换,或者配置values-night
如在代码中为TintTextView设置文字颜色:
textView3.setTextColor(ThemeUtils.getColorById(textView3.getContext(), R.color.theme_color_primary));
主题切换后文字颜色不会主动刷新。