image: refactor views

Refactor StyledImageView and ImageGroup into a new class called
CoverView.

This new view is more sensibly designed and should be capable of
handling non-square album covers when implemented.
This commit is contained in:
Alexander Capehart
2023-05-28 15:29:38 -06:00
parent 10d05b1f26
commit b7c15e0cc5
30 changed files with 517 additions and 611 deletions
+2 -3
View File
@@ -10,13 +10,12 @@
android:paddingEnd="@dimen/spacing_mid_medium"
android:paddingBottom="@dimen/spacing_mid_medium">
<org.oxycblt.auxio.image.ImageGroup
<org.oxycblt.auxio.image.CoverView
android:id="@+id/song_album_cover"
style="@style/Widget.Auxio.Image.Small"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:staticIcon="@drawable/ic_song_24" />
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/song_name"