Answers for "android use attribute color programmatically"

0

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;
Posted by: Guest on March-09-2021

Code answers related to "android use attribute color programmatically"

Browse Popular Code Answers by Language