chapters_item.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.constraint.ConstraintLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="fill_parent"
  7. android:layout_height="?android:attr/listPreferredItemHeight"
  8. android:background="?attr/selectable_list_drawable">
  9. <TextView
  10. android:id="@+id/chapter_title"
  11. style="@style/TextAppearance.Regular.Body1"
  12. android:layout_width="0dp"
  13. android:layout_height="wrap_content"
  14. android:ellipsize="end"
  15. android:maxLines="1"
  16. tools:text="Title"
  17. app:layout_constraintLeft_toLeftOf="parent"
  18. app:layout_constraintTop_toTopOf="parent"
  19. app:layout_constraintRight_toLeftOf="@+id/chapter_menu"
  20. android:layout_marginTop="12dp"
  21. android:layout_marginLeft="16dp"/>
  22. <TextView
  23. android:id="@+id/chapter_scanlator"
  24. style="@style/TextAppearance.Regular.Caption.Hint"
  25. android:layout_width="0dp"
  26. android:layout_height="wrap_content"
  27. tools:text="Scanlator"
  28. android:maxLines="1"
  29. app:layout_constraintLeft_toLeftOf="parent"
  30. app:layout_constraintTop_toBottomOf="@+id/chapter_title"
  31. app:layout_constraintBottom_toTopOf="@+id/chapter_date"
  32. app:layout_constraintRight_toLeftOf="@+id/chapter_menu"
  33. android:layout_marginLeft="16dp"/>
  34. <TextView
  35. android:id="@+id/chapter_date"
  36. style="@style/TextAppearance.Regular.Caption"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. tools:text="22/02/2016"
  40. android:ellipsize="marquee"
  41. app:layout_constraintLeft_toLeftOf="parent"
  42. app:layout_constraintBottom_toBottomOf="parent"
  43. android:layout_marginLeft="16dp"
  44. android:singleLine="true" />
  45. <TextView
  46. android:id="@+id/chapter_pages"
  47. style="@style/TextAppearance.Regular.Caption.Hint"
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. tools:text="Pages: 45"
  51. android:ellipsize="marquee"
  52. app:layout_constraintBottom_toBottomOf="parent"
  53. app:layout_constraintRight_toRightOf="parent"
  54. app:layout_constraintLeft_toLeftOf="parent"
  55. android:singleLine="true" />
  56. <ImageView
  57. android:id="@+id/chapter_menu"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. app:srcCompat="@drawable/ic_more_horiz_black_24dp"
  61. app:layout_constraintRight_toLeftOf="parent"
  62. app:layout_constraintTop_toTopOf="parent"
  63. android:paddingStart="12dp"
  64. android:paddingEnd="12dp"
  65. android:paddingBottom="12dp"
  66. android:paddingTop="12dp"
  67. android:contentDescription="@string/description_cover"/>
  68. <TextView
  69. android:id="@+id/download_text"
  70. style="@style/TextAppearance.Regular.Caption.Hint"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. tools:text="DOWNLOADED"
  74. android:textAllCaps="true"
  75. app:layout_constraintRight_toLeftOf="parent"
  76. app:layout_constraintBottom_toBottomOf="parent"
  77. android:layout_marginRight="16dp"/>
  78. </android.support.constraint.ConstraintLayout>