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

45 lines
1.9 KiB
XML
Raw Normal View History

2018-09-23 10:04:43 +00:00
<?xml version="1.0" encoding="utf-8"?>
2018-11-05 13:53:07 +00:00
<com.google.android.material.card.MaterialCardView xmlns:android="http://schemas.android.com/apk/res/android"
2018-09-23 10:04:43 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2020-01-09 20:53:18 +00:00
android:id="@+id/imageContainerCard"
2018-09-23 10:04:43 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-05-14 13:37:15 +00:00
android:layout_margin="8dp"
2020-01-06 05:34:09 +00:00
android:background="?attr/rectSelector"
app:cardCornerRadius="@dimen/m3_card_corner_radius">
2018-09-23 10:04:43 +00:00
2020-05-14 13:37:15 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
2018-09-23 10:04:43 +00:00
android:layout_width="wrap_content"
2020-05-14 13:37:15 +00:00
android:layout_height="wrap_content">
2018-09-23 10:04:43 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
android:layout_width="156dp"
2019-10-09 17:38:13 +00:00
android:layout_height="156dp"
2019-11-08 17:07:30 +00:00
android:scaleType="centerCrop"
2020-05-14 13:37:15 +00:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
2019-11-08 17:07:30 +00:00
tools:src="@tools:sample/avatars" />
2018-09-23 10:04:43 +00:00
<FrameLayout
2019-11-08 17:07:30 +00:00
android:id="@+id/paletteColorContainer"
2020-05-14 13:37:15 +00:00
android:layout_width="0dp"
android:layout_height="wrap_content"
android:padding="8dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/image">
2018-09-23 10:04:43 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-09-23 10:04:43 +00:00
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
2019-09-28 17:52:49 +00:00
android:textAppearance="@style/TextViewNormal"
2018-09-23 10:04:43 +00:00
tools:text="@string/home" />
</FrameLayout>
2020-05-14 13:37:15 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2018-11-05 13:53:07 +00:00
</com.google.android.material.card.MaterialCardView>