Definir programaticamente '? SelectableItemBackground' na visualização Android
Em xml, costumo fazer isso para emularonClick
efeito:
<android.support.v7.widget.CardView
android:id="@+id/cardView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:foreground="?selectableItemBackground">
...
</android.support.v7.widget.CardView>
Existe alguma maneira de acessar?selectableItemBackground
em java?