I have a navigation drawer and a text selector which works really well. But I have a Dark theme where this selector have to be another, So I switch the selector at the ListAdapter like this
textView.setTextColor(rowView.getResources().getColor(R.color.textselector_dark));`
But now if I choose the dark theme the pressed color doesn't show just the default My text selector:
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:state_activated="true"
android:color="@color/pressed_text_color"/>
<item
android:color="@color/default_color" />