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

36 lines
1.4 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?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"
2019-09-28 17:52:49 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2020-01-06 05:34:09 +00:00
android:background="?rectSelector"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
2019-12-10 17:36:20 +00:00
<code.name.monkey.retromusic.views.WidthFitSquareCardView
2020-01-28 17:00:28 +00:00
android:layout_width="196dp"
android:layout_height="match_parent"
2019-12-10 17:36:20 +00:00
android:layout_margin="8dp"
android:orientation="vertical"
app:cardCornerRadius="6dp"
app:cardElevation="4dp"
app:cardPreventCornerOverlap="true">
2018-07-27 13:07:33 +00:00
2019-12-10 17:36:20 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
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[17]" />
</code.name.monkey.retromusic.views.WidthFitSquareCardView>
2018-07-27 13:07:33 +00:00
2019-09-28 17:52:49 +00:00
<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"
2019-09-28 17:52:49 +00:00
android:textAppearance="@style/TextViewNormal"
tools:text="Song title" />
2018-07-27 13:07:33 +00:00
</LinearLayout>