36 lines
No EOL
1.4 KiB
XML
36 lines
No EOL
1.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="?rectSelector"
|
|
android:orientation="vertical">
|
|
|
|
<code.name.monkey.retromusic.views.WidthFitSquareCardView
|
|
android:layout_width="196dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_margin="8dp"
|
|
android:orientation="vertical"
|
|
app:cardCornerRadius="6dp"
|
|
app:cardElevation="4dp"
|
|
app:cardPreventCornerOverlap="true">
|
|
|
|
<androidx.appcompat.widget.AppCompatImageView
|
|
android:id="@+id/image"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:scaleType="centerCrop"
|
|
tools:srcCompat="@tools:sample/backgrounds/scenic[17]" />
|
|
</code.name.monkey.retromusic.views.WidthFitSquareCardView>
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
android:id="@+id/title"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:ellipsize="end"
|
|
android:maxLines="1"
|
|
android:padding="10dp"
|
|
android:textAppearance="@style/TextViewNormal"
|
|
tools:text="Song title" />
|
|
</LinearLayout> |