android CardView item click ripple effect code example
Example: add tap animation cardview android
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"
android:foreground="?android:attr/selectableItemBackground"
android:clickable="true"