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

70 lines
2.9 KiB
XML
Raw Normal View History

2018-07-27 13:07:33 +00:00
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2018-11-05 13:53:07 +00:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
2018-11-05 13:53:07 +00:00
android:layout_height="wrap_content"
android:background="?rectSelector"
tools:ignore="MissingPrefix">
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<LinearLayout
2018-07-27 13:07:33 +00:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-11-05 13:53:07 +00:00
android:gravity="center"
android:orientation="vertical"
tools:ignore="UnusedAttribute,UselessParent">
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<code.name.monkey.retromusic.views.WidthFitSquareLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
<com.google.android.material.card.MaterialCardView
android:id="@+id/image_container_card"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:cardCornerRadius="8dp"
2019-05-16 09:05:16 +00:00
app:cardElevation="4dp"
2018-11-05 13:53:07 +00:00
app:cardUseCompatPadding="true">
<androidx.appcompat.widget.AppCompatImageView
2018-11-05 13:53:07 +00:00
android:id="@+id/image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="centerCrop"
2019-09-28 17:52:49 +00:00
tools:ignore="ContentDescription"
tools:srcCompat="@tools:sample/backgrounds/scenic[18]" />
2018-11-05 13:53:07 +00:00
</com.google.android.material.card.MaterialCardView>
</code.name.monkey.retromusic.views.WidthFitSquareLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical"
android:paddingStart="4dp"
android:paddingTop="8dp"
android:paddingEnd="4dp"
android:paddingBottom="8dp">
2018-07-27 13:07:33 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-11-05 13:53:07 +00:00
android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:singleLine="true"
android:textAppearance="@style/TextViewSubtitle1"
2019-09-28 17:52:49 +00:00
android:textStyle="bold"
tools:text="@string/bug_report_summary" />
2018-07-27 13:07:33 +00:00
2019-09-28 17:52:49 +00:00
<com.google.android.material.textview.MaterialTextView
2018-11-05 13:53:07 +00:00
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="4dp"
android:singleLine="true"
2019-09-28 17:52:49 +00:00
android:textAppearance="@style/TextViewBody2"
tools:text="@string/bug_report_summary" />
2018-07-27 13:07:33 +00:00
2018-11-05 13:53:07 +00:00
</LinearLayout>
2018-07-27 13:07:33 +00:00
</LinearLayout>
</FrameLayout>