2021-03-28 04:28:49 +08:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2021-03-28 05:59:52 +08:00
|
|
|
android:layout_height="?attr/listPreferredItemHeightSmall"
|
2021-05-22 23:55:05 +08:00
|
|
|
android:background="@drawable/selectable_item_background"
|
2021-03-28 05:59:52 +08:00
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp">
|
2021-03-28 04:28:49 +08:00
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
style="@style/TextAppearance.MaterialComponents.Body2"
|
2021-04-04 03:46:07 +08:00
|
|
|
android:layout_width="0dp"
|
2021-03-28 04:28:49 +08:00
|
|
|
android:layout_height="wrap_content"
|
2021-04-04 03:46:07 +08:00
|
|
|
android:ellipsize="end"
|
2021-03-28 04:28:49 +08:00
|
|
|
android:maxLines="1"
|
2021-04-04 03:46:07 +08:00
|
|
|
android:paddingEnd="8dp"
|
2021-05-23 00:02:49 +08:00
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2021-03-28 04:28:49 +08:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-04-04 03:46:07 +08:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/center_guideline"
|
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2021-05-23 00:02:49 +08:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-03-28 04:28:49 +08:00
|
|
|
tools:text="Title" />
|
|
|
|
|
|
|
|
<com.google.android.material.textview.MaterialTextView
|
|
|
|
android:id="@+id/details"
|
|
|
|
style="@style/TextAppearance.MaterialComponents.Body2"
|
2021-04-04 03:46:07 +08:00
|
|
|
android:layout_width="0dp"
|
2021-03-28 04:28:49 +08:00
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
2021-04-06 23:23:39 +08:00
|
|
|
android:textColor="?android:attr/textColorPrimary"
|
2021-03-28 04:28:49 +08:00
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
2021-03-28 05:59:52 +08:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/dropdown_caret"
|
2021-03-28 04:28:49 +08:00
|
|
|
app:layout_constraintHorizontal_bias="0.0"
|
2021-04-04 03:46:07 +08:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/center_guideline"
|
2021-03-28 04:28:49 +08:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:text="Details" />
|
|
|
|
|
|
|
|
<ImageView
|
2021-03-28 05:59:52 +08:00
|
|
|
android:id="@+id/dropdown_caret"
|
2021-03-28 04:28:49 +08:00
|
|
|
android:layout_width="24dp"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:layout_marginStart="1dp"
|
|
|
|
android:src="@drawable/ic_expand_more_24dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="@id/details"
|
2021-03-28 05:59:52 +08:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-03-28 04:28:49 +08:00
|
|
|
app:layout_constraintTop_toTopOf="@id/details"
|
|
|
|
app:tint="?android:attr/textColorSecondary"
|
|
|
|
tools:ignore="ContentDescription" />
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
2021-04-04 03:46:07 +08:00
|
|
|
android:id="@+id/center_guideline"
|
2021-03-28 04:28:49 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_percent="0.5" />
|
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|