materialcardview

MaterialCardView: customize MaterialCardView -> custom icon (svg->xml), when click change bg color and icon

僤鯓⒐⒋嵵緔 提交于 2020-01-16 08:41:28
问题 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