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

44 lines
1.8 KiB
XML
Raw Normal View History

2018-07-27 18:37:33 +05:30
<?xml version="1.0" encoding="utf-8"?>
2020-05-14 19:07:15 +05:30
<androidx.constraintlayout.widget.ConstraintLayout 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"
2019-09-29 23:58:01 +05:30
xmlns:tools="http://schemas.android.com/tools"
2020-05-14 19:07:15 +05:30
android:layout_width="126dp"
2018-09-23 15:34:43 +05:30
android:layout_height="wrap_content"
2020-01-06 11:04:09 +05:30
android:background="?attr/rectSelector"
2020-05-14 19:07:15 +05:30
android:orientation="vertical"
android:padding="4dp">
2018-07-27 18:37:33 +05:30
2020-05-14 19:07:15 +05:30
<com.google.android.material.card.MaterialCardView
android:id="@+id/imageContainer"
2020-05-12 01:09:44 +05:30
android:layout_width="112dp"
2020-05-14 19:07:15 +05:30
android:layout_height="112dp"
app:cardCornerRadius="56dp"
app:cardElevation="4dp"
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:background="@android:color/transparent"
app:srcCompat="@drawable/default_artist_art"
tools:src="@tools:sample/avatars" />
</com.google.android.material.card.MaterialCardView>
2018-07-27 18:37:33 +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:gravity="center"
2019-12-26 20:55:41 +05:30
android:maxLines="2"
android:paddingTop="12dp"
2020-05-14 19:07:15 +05:30
android:textAppearance="@style/TextViewNormal"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/imageContainer"
2019-12-26 20:55:41 +05:30
tools:text="@tools:sample/full_names" />
2020-05-14 19:07:15 +05:30
</androidx.constraintlayout.widget.ConstraintLayout>