android use attribute color programmatically

194

android use attribute color programmatically -

TypedValue typedValue = new TypedValue();
Theme theme = context.getTheme();
theme.resolveAttribute(R.attr.theme_color, typedValue, true);
@ColorInt int color = typedValue.data;

Comments

Submit
0 Comments