Fixed inconsistent icon sizes

This commit is contained in:
Viktor De Pasquale 2019-11-01 17:55:25 +01:00
parent db2e48b49f
commit 253f3cf1ba

View File

@ -19,8 +19,8 @@
style="?styleCardElevated" style="?styleCardElevated"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:cardUseCompatPadding="true"
app:cardElevation="@dimen/margin_generic" app:cardElevation="@dimen/margin_generic"
app:cardUseCompatPadding="true"
app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent" app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent" app:layout_constraintRight_toRightOf="parent"
@ -56,13 +56,13 @@
app:layout_constraintTop_toTopOf="parent"> app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatImageView <androidx.appcompat.widget.AppCompatImageView
style="?styleIconNormal" style="?styleIconPrimary"
gone="@{data.icon == 0}" gone="@{data.icon == 0}"
srcCompat="@{data.icon}" srcCompat="@{data.icon}"
android:padding="0dp"
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginTop="@dimen/l1" android:layout_marginTop="@dimen/l1"
app:tint="@color/colorSecondary" tools:src="@drawable/ic_delete_md2" />
tools:src="@drawable/ic_delete" />
<androidx.appcompat.widget.AppCompatImageView <androidx.appcompat.widget.AppCompatImageView
style="?styleImageBig" style="?styleImageBig"
@ -70,7 +70,7 @@
android:layout_gravity="center" android:layout_gravity="center"
android:layout_marginTop="@dimen/l1" android:layout_marginTop="@dimen/l1"
android:src="@{data.iconRaw}" android:src="@{data.iconRaw}"
tools:src="@drawable/ic_delete" /> tools:src="@drawable/ic_delete_md2" />
</FrameLayout> </FrameLayout>