I want to change my header background color and I am using the MaterialDrawer library:
AccountHeader headerResult = new AccountHeaderBuilder()
.withActivity(this)
.withHeaderBackground(Color.parseColor(mPrefs.getString("theme_color",getResources().getString(R.string.default_color)))
.withSelectionListEnabledForSingleProfile(false)
... and so on
But with header background, I got the error message "Expected a color resource id (R.color.) but received an RGB integer" and not able to set background color read from preferences. it give Error on log : "android.content.res.Resources$NotFoundException: Resource ID #0x2e60e8"