Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
Similar functionality is supported for StateListDrawable by calling the setImageState function on the ImageView. Could similar functionality not be applied for a ColorStateList on a TextView?
It seems to me that if we can define a ColorStateList referencing some android attributes (e.g. is selected) for e.g. text color, whose state can change at runtime, we should be able to do the same referencing app defined attributes instead