I've been searching this for a while but didn't found nothing. How can I resize an Vector inside an ImageView? I tried a lot of things but didn't work. The vector is shown stretched like that:
My code is:
<com.google.android.material.card.MaterialCardView
android:id="@+id/card_view"
android:layout_width="240dp"
android:layout_height="140dp"
app:cardCornerRadius="8dp"
app:cardElevation="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/buton_add_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/ic_add_image"
android:contentDescription="@string/add_image" />
</com.google.android.material.card.MaterialCardView>