coil: update image behavior

Update the image behavior for the following:
1. Use ic_album as the default image for songs and albums this just
looks beter in general.
2. Use a special default drawable for the widget so that it doesn't
look as strange.
3. Generally update the loading process throughout the app
This commit is contained in:
OxygenCobalt
2021-11-14 16:23:25 -07:00
parent d4fa52ee13
commit 1ea3ddb2e0
31 changed files with 158 additions and 112 deletions
+4 -4
View File
@@ -165,12 +165,12 @@
style="@style/Widget.Auxio.TextView.Icon"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/Theme.Auxio.Neutral"
app:drawableStartCompat="@drawable/ic_song"
app:drawableStartCompat="@drawable/ic_album"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/about_licenses"
tools:text="Songs Loaded: 1616" />
tools:text="Songs Loaded: 1616"
app:drawableTint="?attr/colorControlNormal" />
<TextView
android:id="@+id/about_author"
@@ -178,7 +178,7 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/lbl_author"
android:theme="@style/Theme.Auxio.Neutral"
app:drawableTint="?attr/colorControlNormal"
app:drawableStartCompat="@drawable/ic_artist"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
@@ -45,7 +45,7 @@
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/playback_toolbar"
tools:src="@drawable/ic_song" />
tools:src="@drawable/ic_album" />
<TextView
android:id="@+id/playback_song"
+1 -1
View File
@@ -21,7 +21,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_song" />
tools:src="@drawable/ic_album" />
<TextView
android:id="@+id/song_name"
+1 -1
View File
@@ -21,7 +21,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_song" />
tools:src="@drawable/ic_album" />
<TextView
android:id="@+id/song_name"
+1 -1
View File
@@ -47,7 +47,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_song" />
tools:src="@drawable/ic_album" />
<TextView
android:id="@+id/song_name"
+1 -1
View File
@@ -22,7 +22,7 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="ContentDescription"
tools:src="@drawable/ic_song" />
tools:src="@drawable/ic_album" />
<TextView
android:id="@+id/song_name"
@@ -26,7 +26,7 @@
app:layout_constraintBottom_toTopOf="@+id/playback_progress_bar"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@drawable/ic_song" />
tools:src="@drawable/ic_album" />
<TextView
android:id="@+id/playback_song"
+2 -1
View File
@@ -14,7 +14,8 @@
android:alpha="0.275"
android:contentDescription="@string/desc_no_cover"
android:scaleType="centerCrop"
android:src="@drawable/ic_song" />
android:src="@drawable/ic_auxio"
android:tint="?attr/colorPrimary" />
<android.widget.TextView
android:layout_width="match_parent"
+1 -1
View File
@@ -43,7 +43,7 @@
android:layout_alignTop="@id/widget_aspect_ratio"
android:layout_alignEnd="@id/widget_aspect_ratio"
android:layout_alignBottom="@id/widget_aspect_ratio"
android:src="@drawable/ic_song"
android:src="@drawable/ic_widget_album"
tools:ignore="ContentDescription" />
<android.widget.LinearLayout
+1 -1
View File
@@ -43,7 +43,7 @@
android:layout_alignTop="@id/widget_aspect_ratio"
android:layout_alignEnd="@id/widget_aspect_ratio"
android:layout_alignBottom="@id/widget_aspect_ratio"
android:src="@drawable/ic_song"
android:src="@drawable/ic_widget_album"
tools:ignore="ContentDescription" />
<android.widget.LinearLayout
+5 -2
View File
@@ -45,7 +45,7 @@
android:layout_alignTop="@id/widget_aspect_ratio"
android:layout_alignEnd="@id/widget_aspect_ratio"
android:layout_alignBottom="@id/widget_aspect_ratio"
android:src="@drawable/ic_song"
android:src="@drawable/ic_widget_album"
tools:ignore="ContentDescription" />
<android.widget.LinearLayout
@@ -53,7 +53,10 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:padding="@dimen/spacing_small"
android:paddingTop="@dimen/spacing_small"
android:paddingBottom="@dimen/spacing_small"
android:paddingStart="@dimen/spacing_medium"
android:paddingEnd="@dimen/spacing_medium"
android:elevation="@dimen/elevation_normal"
android:orientation="horizontal"
android:background="@drawable/ui_widget_panel"
+1 -1
View File
@@ -26,7 +26,7 @@
android:layout_marginEnd="@dimen/spacing_medium"
android:contentDescription="@string/desc_no_cover"
android:scaleType="centerCrop"
android:src="@drawable/ic_song" />
android:src="@drawable/ic_widget_album" />
<android.widget.LinearLayout
android:layout_width="0dp"
+5 -2
View File
@@ -45,7 +45,7 @@
android:layout_alignTop="@id/widget_aspect_ratio"
android:layout_alignEnd="@id/widget_aspect_ratio"
android:layout_alignBottom="@id/widget_aspect_ratio"
android:src="@drawable/ic_song"
android:src="@drawable/ic_widget_album"
tools:ignore="ContentDescription" />
<android.widget.LinearLayout
@@ -57,7 +57,10 @@
android:background="@drawable/ui_widget_panel"
android:elevation="@dimen/elevation_normal"
android:orientation="horizontal"
android:padding="@dimen/spacing_small">
android:paddingTop="@dimen/spacing_small"
android:paddingBottom="@dimen/spacing_small"
android:paddingStart="@dimen/spacing_medium"
android:paddingEnd="@dimen/spacing_medium">
<android.widget.ImageButton
android:id="@+id/widget_loop"