Here's a list of changes/features: https://github.com/RetroMusicPlayer/RetroMusicPlayer/releases/tag/v5.0 Internal Changes: 1) Migrated to ViewBinding 2) Migrated to Glide V4 3) Migrated to kotlin version of Material Dialogs
50 lines
No EOL
2.2 KiB
XML
50 lines
No EOL
2.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/imageContainer"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_margin="8dp"
|
|
android:background="?attr/rectSelector"
|
|
android:orientation="vertical"
|
|
android:padding="4dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:layout_constraintDimensionRatio="3:4"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="156dp"
|
|
android:layout_height="156dp"
|
|
android:scaleType="centerCrop"
|
|
app:layout_constraintBottom_toTopOf="@+id/title"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/default_album_art"
|
|
tools:src="@tools:sample/avatars" />
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:ellipsize="end"
|
|
android:maxLines="2"
|
|
android:padding="8dp"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextViewBody1"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
tools:ignore="MissingPrefix"
|
|
tools:text="@tools:sample/full_names" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</com.google.android.material.card.MaterialCardView> |