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

45 lines
1.9 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +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-08-08 08:03:38 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-09-28 17:52:49 +00:00
xmlns:tools="http://schemas.android.com/tools"
2018-08-08 08:03:38 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-01-06 05:34:09 +00:00
android:background="?rectSelector"
2018-07-27 13:07:33 +00:00
android:orientation="vertical">
2020-10-12 17:28:39 +00:00
<com.google.android.material.card.MaterialCardView
2020-05-14 13:37:15 +00:00
android:id="@+id/imageContainer"
2020-01-28 17:00:28 +00:00
android:layout_width="156dp"
2020-12-03 20:57:44 +00:00
android:layout_height="156dp"
2019-12-10 17:36:20 +00:00
android:layout_margin="8dp"
android:orientation="vertical"
app:cardBackgroundColor="@color/transparent"
app:cardCornerRadius="@dimen/m3_card_corner_radius"
2020-05-14 13:37:15 +00:00
app:cardPreventCornerOverlap="true"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
2018-07-27 13:07:33 +00:00
2019-12-10 17:36:20 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
2018-08-08 08:03:38 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-12-10 17:36:20 +00:00
android:scaleType="centerCrop"
tools:srcCompat="@tools:sample/backgrounds/scenic[16]" />
2018-07-27 13:07:33 +00:00
2020-10-12 17:28:39 +00:00
</com.google.android.material.card.MaterialCardView>
2018-08-08 08:03:38 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-08-08 08:03:38 +00:00
android:id="@+id/title"
2020-05-14 13:37:15 +00:00
android:layout_width="0dp"
2018-08-08 08:03:38 +00:00
android:layout_height="wrap_content"
android:ellipsize="end"
2020-08-21 05:01:53 +00:00
android:maxLines="2"
android:padding="12dp"
2020-08-13 08:24:36 +00:00
android:textAppearance="@style/TextViewBody1"
android:textColor="?android:attr/textColorPrimary"
2020-05-14 13:37:15 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/imageContainer"
2020-08-21 05:01:53 +00:00
tools:text="@tools:sample/full_names" />
2020-05-14 13:37:15 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>