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

69 lines
2.8 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
2020-01-06 05:34:09 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-07-27 13:07:33 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2020-01-06 05:34:09 +00:00
android:layout_margin="2dp"
android:background="?attr/rectSelector"
android:clickable="true"
android:focusable="true"
2018-07-27 13:07:33 +00:00
tools:ignore="MissingPrefix">
2020-01-06 05:34:09 +00:00
<com.google.android.material.card.MaterialCardView
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2020-01-06 05:34:09 +00:00
android:layout_height="wrap_content"
app:cardCornerRadius="8dp"
app:cardUseCompatPadding="true"
tools:ignore="MissingPrefix">
2018-07-27 13:07:33 +00:00
2020-01-06 05:34:09 +00:00
<LinearLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2020-01-06 05:34:09 +00:00
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
tools:ignore="UnusedAttribute,UselessParent">
2018-07-27 13:07:33 +00:00
2020-01-06 05:34:09 +00:00
<code.name.monkey.retromusic.views.WidthFitSquareLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2020-01-06 05:34:09 +00:00
android:layout_height="wrap_content">
2018-07-27 13:07:33 +00:00
2020-01-06 05:34:09 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
tools:ignore="ContentDescription"
tools:src="@tools:sample/avatars" />
2018-07-27 13:07:33 +00:00
2020-01-06 05:34:09 +00:00
</code.name.monkey.retromusic.views.WidthFitSquareLayout>
2018-07-27 13:07:33 +00:00
2020-01-06 05:34:09 +00:00
<LinearLayout
android:layout_width="match_parent"
2018-07-27 13:07:33 +00:00
android:layout_height="wrap_content"
2020-01-06 05:34:09 +00:00
android:gravity="center_vertical"
android:orientation="vertical"
android:padding="12dp">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/TextViewSubtitle1"
android:textStyle="bold"
tools:text="@string/bug_report_summary" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="4dp"
android:singleLine="true"
tools:text="@string/bug_report_summary" />
2018-07-27 13:07:33 +00:00
2020-01-06 05:34:09 +00:00
</LinearLayout>
2018-07-27 13:07:33 +00:00
</LinearLayout>
2020-01-06 05:34:09 +00:00
</com.google.android.material.card.MaterialCardView>
</FrameLayout>