PlayerAndroid/app/src/main/res/layout/item_image_gradient.xml

55 lines
2.3 KiB
XML
Raw Normal View History

2018-11-13 03:30:08 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-05-14 13:37:15 +00:00
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-11-13 03:30:08 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-01-06 05:34:09 +00:00
android:background="?attr/rectSelector"
android:clickable="true"
android:focusable="true"
tools:ignore="MissingPrefix">
2018-11-13 03:30:08 +00:00
2020-01-06 05:34:09 +00:00
<com.google.android.material.card.MaterialCardView
android:id="@+id/imageContainer"
2020-05-14 13:37:15 +00:00
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_margin="4dp"
2020-01-06 05:34:09 +00:00
android:orientation="vertical"
app:cardCornerRadius="@dimen/m3_card_corner_radius"
2020-05-14 13:37:15 +00:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
2018-11-13 03:30:08 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-05-14 13:37:15 +00:00
android:scaleType="centerCrop"
android:transitionName="@string/transition_album_art"
tools:ignore="ContentDescription"
tools:src="@tools:sample/avatars" />
2020-01-06 05:34:09 +00:00
2020-05-14 13:37:15 +00:00
<View
android:id="@+id/mask"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/shadow_up_home" />
2020-01-06 05:34:09 +00:00
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center"
android:gravity="center"
android:maxLines="2"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:paddingBottom="8dp"
android:textAppearance="@style/TextViewSubtitle1"
android:textColor="@color/md_white_1000"
2020-05-14 13:37:15 +00:00
tools:text="@tools:sample/full_names" />
2020-01-06 05:34:09 +00:00
</com.google.android.material.card.MaterialCardView>
2020-05-14 13:37:15 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>