I need to change the background color of a TextView.
the font color using ColorStateList what I can change, but the background color does not accept ColorStateList
lblEtiqueta.setTextColor (new ColorStateList (
new int [] [] {
new int [] {android.R.attr.state_pressed}
new int [] {android.R.attr.state_focused}
new int [0]
}, new int [] {
Color.rgb (255, 128, 192),
Color.rgb (100, 200, 192),
Color.White,
}
));
how to make the background color?
TextView control is created dynamically at runtime.
Thanks in advance.