Setting Android TextView text color programmatically with setTextColor() renders android:duplicateParentState invalid
OK, found my mistake. I should be using getResources().getColorStateList()
instead of getResources().getColor()
. Leaving this here for anyone else who makes the same mistake.