Adjust download icon sizing

This commit is contained in:
arkon 2020-12-29 09:15:32 -05:00
parent cef1c4b8a1
commit 8135136c86

View File

@ -2,14 +2,18 @@
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="24dp" android:layout_width="28dp"
android:layout_height="24dp" android:layout_height="28dp"
android:background="?selectableItemBackgroundBorderless"> android:background="?selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true">
<ImageView <ImageView
android:id="@+id/download_icon_border" android:id="@+id/download_icon_border"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="2dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/border_circle" app:srcCompat="@drawable/border_circle"
app:tint="@color/material_on_surface_emphasis_medium" app:tint="@color/material_on_surface_emphasis_medium"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
@ -18,7 +22,8 @@
android:id="@+id/download_icon" android:id="@+id/download_icon"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:padding="3dp" android:padding="4dp"
android:scaleType="fitXY"
app:srcCompat="@drawable/ic_arrow_downward_24dp" app:srcCompat="@drawable/ic_arrow_downward_24dp"
app:tint="@color/material_on_surface_emphasis_medium" app:tint="@color/material_on_surface_emphasis_medium"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
@ -39,6 +44,8 @@
android:id="@+id/downloaded_icon" android:id="@+id/downloaded_icon"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:scaleType="fitXY"
android:visibility="gone"
app:srcCompat="@drawable/ic_check_circle_24dp" app:srcCompat="@drawable/ic_check_circle_24dp"
app:tint="@color/material_on_surface_emphasis_medium" app:tint="@color/material_on_surface_emphasis_medium"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />
@ -47,6 +54,8 @@
android:id="@+id/error_icon" android:id="@+id/error_icon"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:scaleType="fitXY"
android:visibility="gone"
app:srcCompat="@drawable/ic_error_outline_24dp" app:srcCompat="@drawable/ic_error_outline_24dp"
app:tint="?attr/colorError" app:tint="?attr/colorError"
tools:ignore="ContentDescription" /> tools:ignore="ContentDescription" />