mirror of
https://github.com/mihonapp/mihon.git
synced 2024-10-31 21:20:59 -04:00
84 lines
3.3 KiB
XML
84 lines
3.3 KiB
XML
<?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"
|
|
android:layout_height="64dp"
|
|
android:background="@drawable/list_item_selector_background">
|
|
|
|
<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" />
|
|
|
|
<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"
|
|
app:layout_constraintBottom_toTopOf="@id/subtitle"
|
|
app:layout_constraintEnd_toStartOf="@+id/source_latest"
|
|
app:layout_constraintStart_toEndOf="@+id/image"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintVertical_chainStyle="packed"
|
|
tools:text="Source title" />
|
|
|
|
<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"
|
|
tools:visibility="visible" />
|
|
|
|
<Button
|
|
android:id="@+id/source_latest"
|
|
style="?attr/borderlessButtonStyle"
|
|
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" />
|
|
|
|
<ImageButton
|
|
android:id="@+id/pin"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/action_pin"
|
|
android:visibility="gone"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:srcCompat="@drawable/ic_push_pin_outline_24dp"
|
|
tools:visibility="visible" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|