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

104 lines
4.2 KiB
XML
Raw Normal View History

2015-09-26 14:25:18 +02:00
<?xml version="1.0" encoding="utf-8"?>
2020-03-22 09:22:11 +01:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2017-08-15 15:06:21 +02:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2020-03-22 09:22:11 +01:00
android:id="@+id/chapter_layout"
2017-08-15 15:06:21 +02:00
android:layout_width="fill_parent"
2020-03-22 09:22:11 +01:00
android:layout_height="wrap_content"
android:background="?android:attr/colorBackground">
2015-09-26 14:25:18 +02:00
2020-03-22 09:22:11 +01:00
<FrameLayout
android:id="@+id/right_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:background="@color/material_green_800"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-03-22 09:22:11 +01:00
app:layout_constraintTop_toTopOf="parent">
2015-09-26 14:25:18 +02:00
2020-03-22 09:22:11 +01:00
<ImageView
android:id="@+id/read"
android:layout_width="24dp"
android:layout_height="24dp"
android:tint="@color/md_white_1000"
android:layout_gravity="end|center"
android:layout_marginEnd="21dp"
android:src="@drawable/ic_read_24dp" />
</FrameLayout>
2020-03-22 09:22:11 +01:00
<FrameLayout
android:id="@+id/left_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
android:background="@color/colorAccent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
2020-03-22 09:22:11 +01:00
app:layout_constraintTop_toTopOf="parent">
2015-09-26 14:25:18 +02:00
2020-03-22 09:22:11 +01:00
<ImageView
android:id="@+id/bookmark"
android:layout_width="24dp"
android:layout_height="24dp"
android:layout_gravity="start|center"
android:layout_marginStart="21dp"
android:tint="@color/md_white_1000"
android:src="@drawable/ic_bookmark_24dp" />
2020-03-22 09:22:11 +01:00
</FrameLayout>
2020-03-22 09:22:11 +01:00
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/front_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent"
2020-04-20 02:46:53 +02:00
android:background="@drawable/list_item_selector"
2020-03-22 09:22:11 +01:00
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
<TextView
android:id="@+id/chapter_title"
style="@style/TextAppearance.MaterialComponents.Body2"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginTop="12dp"
android:ellipsize="end"
android:maxLines="2"
app:layout_constraintBottom_toTopOf="@id/chapter_scanlator"
app:layout_constraintEnd_toStartOf="@id/download_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Chapter 123 - The Real One" />
<TextView
android:id="@+id/chapter_scanlator"
style="@style/TextAppearance.MaterialComponents.Caption"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="16dp"
android:layout_marginBottom="12dp"
android:ellipsize="end"
android:maxLines="1"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/download_button"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/chapter_title"
tools:text="3 days ago • On page 45 • Scanlator" />
<include
layout="@layout/download_button"
2021-03-29 05:01:53 +02:00
android:id="@+id/download_button"
2020-03-22 09:22:11 +01:00
android:layout_width="50dp"
android:layout_height="0dp"
android:layout_marginEnd="4dp"
2020-03-22 09:22:11 +01:00
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
2020-03-22 09:22:11 +01:00
</FrameLayout>