chapters_item.xml 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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_vert_black_24dp"
  61. app:layout_constraintRight_toRightOf="parent"
  62. app:layout_constraintTop_toTopOf="parent"
  63. android:paddingStart="24dp"
  64. android:paddingEnd="16dp"
  65. android:layout_marginEnd="8dp"
  66. android:paddingLeft="24dp"
  67. android:paddingRight="16dp"
  68. android:layout_marginRight="8dp"
  69. android:paddingBottom="24dp"
  70. android:paddingTop="12dp"
  71. android:contentDescription="@string/description_cover"/>
  72. <TextView
  73. android:id="@+id/download_text"
  74. style="@style/TextAppearance.Regular.Caption.Hint"
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. tools:text="DOWNLOADED"
  78. android:textAllCaps="true"
  79. app:layout_constraintRight_toLeftOf="parent"
  80. app:layout_constraintBottom_toBottomOf="parent"
  81. android:layout_marginRight="16dp"/>
  82. </android.support.constraint.ConstraintLayout>