mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-15 19:25:10 +01:00
02896679fe
Also using this as a test bed for fast adapter
64 lines
2.7 KiB
XML
64 lines
2.7 KiB
XML
<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:id="@+id/reader_chapter_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
android:background="?attr/selectable_list_drawable"
|
|
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="1"
|
|
app:layout_constraintBottom_toTopOf="@id/chapter_scanlator"
|
|
app:layout_constraintEnd_toStartOf="@id/bookmark_layout"
|
|
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/bookmark_layout"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@+id/chapter_title"
|
|
tools:text="3 days ago • On page 45 • Scanlator" />
|
|
|
|
<FrameLayout
|
|
android:id="@+id/bookmark_layout"
|
|
android:layout_width="50dp"
|
|
android:layout_height="50dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/rounded_ripple"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:src="@drawable/ic_bookmark_24dp"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/bookmark_image"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/ic_bookmark_border_24dp"
|
|
android:tint="?android:attr/textColorHint"/>
|
|
</FrameLayout>
|
|
</androidx.constraintlayout.widget.ConstraintLayout> |