2017-09-23 07:11:39 -04:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-09-26 19:03:46 -04:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2017-09-23 07:11:39 -04:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
2020-09-26 19:03:46 -04:00
|
|
|
android:layout_height="64dp"
|
|
|
|
android:background="@drawable/list_item_selector_background">
|
2017-09-23 07:11:39 -04:00
|
|
|
|
2020-09-26 19:03:46 -04:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/image"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintDimensionRatio="1:1"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:ignore="ContentDescription"
|
|
|
|
tools:src="@mipmap/ic_launcher_round" />
|
2017-09-23 07:11:39 -04:00
|
|
|
|
2020-09-26 19:03:46 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/title"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:ellipsize="end"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:paddingStart="0dp"
|
|
|
|
android:paddingEnd="8dp"
|
|
|
|
android:textAppearance="@style/TextAppearance.Regular.SubHeading"
|
2020-10-12 17:35:08 -04:00
|
|
|
app:layout_constraintBottom_toTopOf="@id/subtitle"
|
2020-09-26 19:03:46 -04:00
|
|
|
app:layout_constraintEnd_toStartOf="@+id/source_latest"
|
|
|
|
app:layout_constraintStart_toEndOf="@+id/image"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2020-10-12 17:35:08 -04:00
|
|
|
app:layout_constraintVertical_chainStyle="packed"
|
2020-09-26 19:03:46 -04:00
|
|
|
tools:text="Source title" />
|
2017-09-23 07:11:39 -04:00
|
|
|
|
2020-10-12 17:35:08 -04:00
|
|
|
<TextView
|
|
|
|
android:id="@+id/subtitle"
|
|
|
|
style="@style/TextAppearance.Regular.Body1.Secondary"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxLines="1"
|
|
|
|
android:textSize="12sp"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/source_latest"
|
|
|
|
app:layout_constraintStart_toEndOf="@id/image"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/title"
|
|
|
|
tools:text="English"
|
2021-05-22 12:02:49 -04:00
|
|
|
tools:visibility="visible" />
|
2020-10-12 17:35:08 -04:00
|
|
|
|
2020-09-26 19:03:46 -04:00
|
|
|
<Button
|
|
|
|
android:id="@+id/source_latest"
|
2021-06-19 15:45:16 -04:00
|
|
|
style="?attr/borderlessButtonStyle"
|
2020-09-26 19:03:46 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:maxHeight="48dp"
|
|
|
|
android:minWidth="0dp"
|
|
|
|
android:minHeight="48dp"
|
|
|
|
android:paddingStart="16dp"
|
|
|
|
android:paddingEnd="16dp"
|
|
|
|
android:text="@string/latest"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toStartOf="@+id/pin"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
tools:visibility="visible" />
|
2017-09-23 07:11:39 -04:00
|
|
|
|
2020-09-26 19:03:46 -04:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/pin"
|
|
|
|
android:layout_width="40dp"
|
2021-05-22 11:55:05 -04:00
|
|
|
android:layout_height="40dp"
|
2020-09-26 19:03:46 -04:00
|
|
|
android:layout_marginEnd="8dp"
|
2021-06-19 15:45:16 -04:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2020-09-26 19:03:46 -04:00
|
|
|
android:contentDescription="@string/action_pin"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-01-31 09:55:28 -05:00
|
|
|
app:srcCompat="@drawable/ic_push_pin_outline_24dp"
|
2020-09-26 19:03:46 -04:00
|
|
|
tools:visibility="visible" />
|
2017-09-23 07:11:39 -04:00
|
|
|
|
2020-09-26 19:03:46 -04:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|