chapters_item.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="fill_parent"
  6. android:layout_height="?android:attr/listPreferredItemHeight"
  7. android:background="@drawable/list_item_selector_background"
  8. android:paddingStart="16dp"
  9. android:paddingEnd="5dp">
  10. <ImageView
  11. android:id="@+id/bookmark_icon"
  12. android:layout_width="16dp"
  13. android:layout_height="0dp"
  14. android:layout_marginTop="12dp"
  15. android:layout_marginEnd="4dp"
  16. android:visibility="gone"
  17. app:layout_constraintBottom_toBottomOf="@id/chapter_title"
  18. app:layout_constraintEnd_toStartOf="@id/chapter_title"
  19. app:layout_constraintStart_toStartOf="parent"
  20. app:layout_constraintTop_toTopOf="parent"
  21. app:srcCompat="@drawable/ic_bookmark_24dp"
  22. app:tint="?attr/colorAccent"
  23. tools:visibility="visible" />
  24. <TextView
  25. android:id="@+id/chapter_title"
  26. style="@style/TextAppearance.Regular.Body1"
  27. android:layout_width="0dp"
  28. android:layout_height="wrap_content"
  29. android:layout_marginTop="12dp"
  30. android:ellipsize="end"
  31. android:maxLines="1"
  32. app:layout_constraintEnd_toStartOf="@+id/download"
  33. app:layout_constraintStart_toEndOf="@+id/bookmark_icon"
  34. app:layout_constraintTop_toTopOf="parent"
  35. tools:text="Title" />
  36. <TextView
  37. android:id="@+id/chapter_description"
  38. style="@style/TextAppearance.Regular.Caption"
  39. android:layout_width="0dp"
  40. android:layout_height="wrap_content"
  41. android:layout_marginBottom="8dp"
  42. android:ellipsize="end"
  43. android:singleLine="true"
  44. app:layout_constraintBottom_toBottomOf="parent"
  45. app:layout_constraintEnd_toStartOf="@+id/download"
  46. app:layout_constraintStart_toStartOf="parent"
  47. tools:text="22/02/2016 • Scanlator • Page: 45" />
  48. <eu.kanade.tachiyomi.ui.manga.chapter.ChapterDownloadView
  49. android:id="@+id/download"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:paddingStart="4dp"
  53. app:layout_constraintBottom_toBottomOf="parent"
  54. app:layout_constraintEnd_toEndOf="parent"
  55. app:layout_constraintTop_toTopOf="parent" />
  56. </androidx.constraintlayout.widget.ConstraintLayout>