I think this question says it all: is there a default selector from @android/drawablethat I can set as the background for my view if I call:
view.setSelected(true);
I want to use the default colors from android, but in a custom Selector I can only add my own drawings. Is there a default selector for this? Or can I access the default drawings for this so that I can use them in my selector?
I tried with android:background="?android:attr/selectableItemBackground", but if I call view.setSelected(true);, nothing happened.
source
share