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

79 lines
3.6 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-08-11 18:29:44 +00:00
android:layout_margin="1dp"
2020-01-06 05:34:09 +00:00
android:background="?attr/rectSelector"
android:clickable="true"
2020-05-14 13:37:15 +00:00
android:focusable="true">
2018-07-27 13:07:33 +00:00
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"
2020-08-11 18:29:44 +00:00
android:layout_margin="5dp"
app:cardCornerRadius="@dimen/m3_card_corner_radius"
2020-01-06 05:34:09 +00:00
tools:ignore="MissingPrefix">
2018-07-27 13:07:33 +00:00
2020-05-14 13:37:15 +00:00
<androidx.constraintlayout.widget.ConstraintLayout
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-05-14 13:37:15 +00:00
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/image"
android:layout_width="0dp"
android:layout_height="0dp"
android:scaleType="centerCrop"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:ignore="ContentDescription"
tools:src="@tools:sample/avatars" />
2018-07-27 13:07:33 +00:00
2020-05-20 23:55:28 +00:00
<LinearLayout
android:id="@+id/titleContainer"
android:layout_width="0dp"
2018-07-27 13:07:33 +00:00
android:layout_height="wrap_content"
2020-05-20 23:55:28 +00:00
android:gravity="center_vertical"
android:orientation="vertical"
android:padding="12dp"
app:layout_constraintEnd_toStartOf="@id/menu"
2020-05-14 13:37:15 +00:00
app:layout_constraintStart_toStartOf="parent"
2020-05-20 23:55:28 +00:00
app:layout_constraintTop_toBottomOf="@id/image">
2020-01-06 05:34:09 +00:00
2020-05-20 23:55:28 +00:00
<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"
2020-05-23 13:53:10 +00:00
tools:text="@tools:sample/full_names" />
2018-07-27 13:07:33 +00:00
2020-05-20 23:55:28 +00:00
<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"
2020-05-23 13:53:10 +00:00
tools:text="@tools:sample/full_names" />
2020-05-20 23:55:28 +00:00
</LinearLayout>
<androidx.appcompat.widget.AppCompatImageView
android:id="@+id/menu"
style="@style/OverFlowButton"
android:layout_gravity="center_vertical"
android:layout_weight="0"
app:layout_constraintBottom_toBottomOf="@id/titleContainer"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/titleContainer"
app:layout_constraintTop_toTopOf="@id/titleContainer"
app:tint="?attr/colorControlNormal" />
2020-05-14 13:37:15 +00:00
</androidx.constraintlayout.widget.ConstraintLayout>
2020-01-06 05:34:09 +00:00
</com.google.android.material.card.MaterialCardView>
2020-05-14 13:37:15 +00:00
</FrameLayout>