title: Set custom icon in the center of MaterialCardView
body: <p>I am not able Set custom icon in the center of MaterialCardView. Here is my xml layout</p>
  
  <pre><code>&lt;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_constraintBottom_toBottomOf="parent"
      app:layout_constraintEnd_toEndOf="parent"
      app:layout_constraintStart_toStartOf="parent"
      app:layout_constraintTop_toBottomOf="@+id/toolBarContainer"&gt;
  
      &lt;com.google.android.material.card.MaterialCardView
          android:id="@+id/cardPaymentCardView"
          android:layout_width="0dp"
          android:layout_height="0dp"
          android:checkable="true"
          android:clickable="true"
          android:focusable="true"
          app:cardCornerRadius="@dimen/card_view_cornder_radius"
          app:layout_constraintBottom_toBottomOf="parent"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"&gt;
      &lt;/com.google.android.material.card.MaterialCardView&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  
  <p>handle click in activity:</p>
  
  <pre><code>dataBinding =
              DataBindingUtil.setContentView&lt;PaymentActivityBinding&gt;(this, R.layout.payment_activity)
          dataBinding.setHandler(this)
          dataBinding.cardPaymentCardView.setOnClickListener({
              Debug.d(TAG, "cardPaymentCardView: onClick")
              dataBinding.cardPaymentCardView.isChecked = !dataBinding.cardPaymentCardView.isChecked
          })
  </code></pre>
  
  <p>Here result:</p>
  
  <p>Not clicked:</p>
  
  <p><a href="https://i.stack.imgur.com/7H4go.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7H4go.png" alt="enter image description here"></a></p>
  
  <p>And clicked:</p>
  
  <p><a href="https://i.stack.imgur.com/aWDpW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aWDpW.png" alt="enter image description here"></a></p>
  
  <p>But I need to put my custom icon to the center of CardView.
  Smt like this:</p>
  
  <p><a href="https://i.stack.imgur.com/fFgQB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fFgQB.png" alt="enter image description here"></a></p>
  
  <p>I converted SVG to xml (by Android Studio)</p>
  
  <p>I try this, but icon not show and not show in the CENTER of cardView:</p>
  
  <pre><code> &lt;com.google.android.material.card.MaterialCardView
                  android:id="@+id/cardPaymentCardView"
                  style="@style/cardViewStyle"
                  android:layout_width="0dp"
                  android:layout_height="0dp"
                  android:checkable="true"
                  android:clickable="true"
                  android:focusable="true"
                  app:cardCornerRadius="@dimen/card_view_cornder_radius"
                  app:checkedIcon="@drawable/ic_credit_card_outline_select"
                  app:layout_constraintBottom_toBottomOf="parent"
                  app:layout_constraintEnd_toEndOf="parent"
                  app:layout_constraintStart_toStartOf="parent"
                  app:layout_constraintTop_toTopOf="parent"&gt;
  
              &lt;/com.google.android.material.card.MaterialCardView&gt;
  </code></pre>