1. Chaning Home Album sections from MetalAdapter to Normal 2. Adding animation icons 3. Removed cardElevation 0dp
44 lines
No EOL
1.9 KiB
XML
44 lines
No EOL
1.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/rectSelector"
|
|
android:orientation="vertical">
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
android:id="@+id/imageContainer"
|
|
android:layout_width="112dp"
|
|
android:layout_height="156dp"
|
|
android:layout_margin="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
app:srcCompat="@drawable/default_album_art"
|
|
tools:src="@tools:sample/avatars" />
|
|
</com.google.android.material.card.MaterialCardView>
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:padding="8dp"
|
|
android:textAppearance="@style/TextViewNormal"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/imageContainer"
|
|
tools:ignore="MissingPrefix"
|
|
tools:text="@tools:sample/full_names" />
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |