问题 Android studio 3.6 I want when click on MaterialCardView to change custom icon (on the center of MaterialCardView ) and background color of MaterialCardView. Here my solution: xml layout: <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/cardPaymentContainer" android:layout_width="0dp" android:layout_height="200dp" android:layout_margin="@dimen/default_margin" android:layout_marginStart="@dimen/button_margin" android:layout_marginEnd="@dimen/button_margin" app:layout