private void updateTheme(){
SharedPreferences themePrefs = ApplicationLoader.applicationContext.getSharedPreferences(AndroidUtilities.THEME_PREFS, AndroidUtilities.THEME_PREFS_MODE);
int def = themePrefs.getInt("themeColor", AndroidUtilities.defColor);
actionBar.setBackgroundColor(themePrefs.getInt("prefHeaderColor", def));
actionBar.setTitleColor(themePrefs.getInt("prefHeaderTitleColor", 0xffffffff));
Drawable back = getParentActivity().getResources().getDrawable(R.drawable.ic_ab_back);
back.setColorFilter(themePrefs.getInt("prefHeaderIconsColor", 0xffffffff), PorterDuff.Mode.MULTIPLY);
actionBar.setBackButtonDrawable(back);
}
ThemingChatActivity.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:PlusGram
作者:
评论列表
文章目录