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

46 lines
1.9 KiB
XML
Raw Normal View History

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