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

41 lines
1.6 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"
2018-08-08 08:03:38 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
2019-09-28 17:52:49 +00:00
xmlns:tools="http://schemas.android.com/tools"
2018-08-08 08:03:38 +00:00
android:layout_width="wrap_content"
android:layout_height="wrap_content"
2018-07-27 13:07:33 +00:00
android:orientation="vertical">
2018-08-08 08:03:38 +00:00
<code.name.monkey.retromusic.views.WidthFitSquareLayout
android:layout_width="136dp"
android:layout_height="wrap_content"
android:orientation="vertical">
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<com.google.android.material.card.MaterialCardView
2019-11-08 17:07:30 +00:00
android:id="@+id/imageContainerCard"
2018-08-08 08:03:38 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="8dp"
app:cardCornerRadius="8dp"
app:cardPreventCornerOverlap="true">
2018-07-27 13:07:33 +00:00
2018-08-30 09:29:30 +00:00
<androidx.appcompat.widget.AppCompatImageView
2018-08-08 08:03:38 +00:00
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
2019-09-28 17:52:49 +00:00
android:scaleType="centerCrop"
tools:srcCompat="@tools:sample/backgrounds/scenic[16]" />
2018-11-05 13:53:07 +00:00
</com.google.android.material.card.MaterialCardView>
2018-07-27 13:07:33 +00:00
2018-08-08 08:03:38 +00:00
</code.name.monkey.retromusic.views.WidthFitSquareLayout>
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-08-08 08:03:38 +00:00
android:id="@+id/title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ellipsize="end"
android:maxLines="1"
2018-11-05 13:53:07 +00:00
android:padding="10dp"
2019-09-28 17:52:49 +00:00
android:textAppearance="@style/TextViewNormal"
tools:text="Song name" />
2018-07-27 13:07:33 +00:00
</LinearLayout>