Answers for "how to set color in android programmatically"

2

android settextcolor programmatically

mTextView.setTextColor(Color.parseColor("#bdbdbd"));
Posted by: Guest on September-05-2020
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 "how to set color in android programmatically"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language