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