tachiyomi/app/src/main/res/layout/source_item.xml

57 lines
2.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="utf-8"?>
<FrameLayout
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="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/card"
android:layout_width="match_parent"
android:layout_height="@dimen/material_component_lists_two_line_height"
android:background="?attr/selectable_list_drawable">
<ImageView
android:id="@+id/edit_button"
android:layout_width="0dp"
android:layout_height="0dp"
2020-04-19 10:17:47 +02:00
android:layout_marginStart="6dp"
android:padding="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintDimensionRatio="1:1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:src="@mipmap/ic_launcher_round" />
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:maxLines="1"
android:paddingStart="0dp"
android:paddingEnd="8dp"
android:ellipsize="end"
2020-04-19 10:17:47 +02:00
android:textColor="?android:textColorPrimary"
app:layout_constraintBottom_toBottomOf="parent"
2020-04-19 10:17:47 +02:00
app:layout_constraintEnd_toStartOf="@+id/source_latest"
app:layout_constraintStart_toEndOf="@+id/edit_button"
app:layout_constraintTop_toTopOf="parent"
2020-04-19 10:17:47 +02:00
tools:text="Source title" />
2020-04-19 10:17:47 +02:00
<com.google.android.material.button.MaterialButton
android:id="@+id/source_latest"
2020-04-19 10:17:47 +02:00
style="@style/Theme.Widget.Button.TextButton"
android:textColor="?colorAccent"
android:layout_marginEnd="12dp"
android:textAllCaps="false"
android:layout_width="wrap_content"
2020-04-19 10:17:47 +02:00
android:letterSpacing="0.0"
android:text="@string/view_latest"
android:layout_height="match_parent"
app:layout_constraintEnd_toEndOf="parent"/>
</androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout>