fragment_manga_info.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.v4.widget.SwipeRefreshLayout
  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. tools:context="eu.kanade.tachiyomi.ui.catalogue.CatalogueController"
  7. android:id="@id/swipe_refresh"
  8. android:layout_width="match_parent"
  9. android:layout_height="match_parent">
  10. <android.support.constraint.ConstraintLayout
  11. xmlns:app="http://schemas.android.com/apk/res-auto"
  12. xmlns:tools="http://schemas.android.com/tools"
  13. android:layout_width="match_parent"
  14. android:layout_height="match_parent"
  15. xmlns:android="http://schemas.android.com/apk/res/android">
  16. <View
  17. android:id="@+id/guideline"
  18. android:layout_width="0dp"
  19. android:layout_height="0dp"
  20. android:layout_marginTop="16dp"
  21. app:layout_constraintTop_toBottomOf="@+id/manga_cover"/>
  22. <android.support.constraint.Guideline
  23. android:layout_width="wrap_content"
  24. android:layout_height="wrap_content"
  25. android:id="@+id/guideline2"
  26. android:orientation="vertical"
  27. app:layout_constraintGuide_percent="0.38"/>
  28. <ImageView
  29. android:id="@+id/backdrop"
  30. android:layout_width="0dp"
  31. android:layout_height="0dp"
  32. android:alpha="0.2"
  33. tools:background="@color/material_grey_700"
  34. app:layout_constraintTop_toTopOf="parent"
  35. app:layout_constraintBottom_toTopOf="@+id/guideline"
  36. app:layout_constraintLeft_toLeftOf="parent"
  37. app:layout_constraintRight_toRightOf="parent"/>
  38. <ImageView
  39. android:id="@+id/manga_cover"
  40. android:layout_width="0dp"
  41. android:layout_height="0dp"
  42. android:layout_marginTop="16dp"
  43. android:layout_marginBottom="16dp"
  44. android:layout_marginLeft="16dp"
  45. android:layout_marginRight="16dp"
  46. android:contentDescription="@string/description_cover"
  47. app:layout_constraintTop_toTopOf="parent"
  48. app:layout_constraintLeft_toLeftOf="parent"
  49. app:layout_constraintRight_toLeftOf="@+id/guideline2"
  50. app:layout_constraintDimensionRatio="h,2:3"
  51. tools:background="@color/material_grey_700"/>
  52. <android.support.design.widget.FloatingActionButton
  53. android:id="@+id/fab_favorite"
  54. style="@style/Theme.Widget.FAB"
  55. app:srcCompat="@drawable/ic_bookmark_border_white_24dp"
  56. android:layout_marginTop="0dp"
  57. android:layout_marginBottom="0dp"
  58. android:layout_marginRight="8dp"
  59. app:layout_constraintTop_toBottomOf="@+id/guideline"
  60. app:layout_constraintBottom_toTopOf="@+id/guideline"
  61. app:layout_constraintRight_toRightOf="parent"/>
  62. <android.support.v4.widget.NestedScrollView
  63. android:id="@+id/info_scrollview"
  64. android:layout_width="0dp"
  65. android:layout_height="0dp"
  66. android:layout_marginTop="16dp"
  67. android:layout_marginBottom="16dp"
  68. android:layout_marginLeft="0dp"
  69. android:layout_marginRight="16dp"
  70. app:layout_constraintTop_toTopOf="parent"
  71. app:layout_constraintBottom_toTopOf="@+id/guideline"
  72. app:layout_constraintLeft_toLeftOf="@+id/guideline2"
  73. app:layout_constraintRight_toRightOf="parent">
  74. <android.support.constraint.ConstraintLayout
  75. android:layout_width="match_parent"
  76. android:layout_height="match_parent">
  77. <TextView
  78. android:id="@+id/manga_author_label"
  79. style="@style/TextAppearance.Medium.Body2"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:text="@string/manga_info_author_label"
  83. android:textIsSelectable="false"
  84. app:layout_constraintTop_toTopOf="parent"
  85. app:layout_constraintLeft_toLeftOf="parent"/>
  86. <TextView
  87. android:id="@+id/manga_author"
  88. style="@style/TextAppearance.Regular.Body1.Secondary"
  89. android:layout_width="0dp"
  90. android:layout_height="wrap_content"
  91. android:layout_marginLeft="8dp"
  92. android:ellipsize="end"
  93. android:maxLines="1"
  94. android:textIsSelectable="false"
  95. app:layout_constraintBaseline_toBaselineOf="@+id/manga_author_label"
  96. app:layout_constraintLeft_toRightOf="@+id/manga_author_label"
  97. app:layout_constraintRight_toRightOf="parent"/>
  98. <TextView
  99. android:id="@+id/manga_artist_label"
  100. style="@style/TextAppearance.Medium.Body2"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="@string/manga_info_artist_label"
  104. android:textIsSelectable="false"
  105. app:layout_constraintTop_toBottomOf="@+id/manga_author_label"
  106. app:layout_constraintLeft_toLeftOf="parent"/>
  107. <TextView
  108. android:id="@+id/manga_artist"
  109. style="@style/TextAppearance.Regular.Body1.Secondary"
  110. android:layout_width="0dp"
  111. android:layout_height="wrap_content"
  112. android:layout_marginLeft="8dp"
  113. android:ellipsize="end"
  114. android:maxLines="1"
  115. android:textIsSelectable="false"
  116. app:layout_constraintBaseline_toBaselineOf="@+id/manga_artist_label"
  117. app:layout_constraintLeft_toRightOf="@+id/manga_artist_label"
  118. app:layout_constraintRight_toRightOf="parent"/>
  119. <TextView
  120. android:id="@+id/manga_chapters_label"
  121. style="@style/TextAppearance.Medium.Body2"
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:text="@string/manga_info_last_chapter_label"
  125. android:textIsSelectable="false"
  126. app:layout_constraintTop_toBottomOf="@+id/manga_artist_label"
  127. app:layout_constraintLeft_toLeftOf="parent"/>
  128. <TextView
  129. android:id="@+id/manga_chapters"
  130. style="@style/TextAppearance.Regular.Body1.Secondary"
  131. android:layout_width="0dp"
  132. android:layout_height="wrap_content"
  133. android:layout_marginLeft="8dp"
  134. android:ellipsize="end"
  135. android:maxLines="1"
  136. android:textIsSelectable="false"
  137. app:layout_constraintBaseline_toBaselineOf="@+id/manga_chapters_label"
  138. app:layout_constraintLeft_toRightOf="@+id/manga_chapters_label"
  139. app:layout_constraintRight_toRightOf="parent"/>
  140. <TextView
  141. android:id="@+id/manga_status_label"
  142. style="@style/TextAppearance.Medium.Body2"
  143. android:layout_width="wrap_content"
  144. android:layout_height="wrap_content"
  145. android:text="@string/manga_info_status_label"
  146. android:textIsSelectable="false"
  147. app:layout_constraintTop_toBottomOf="@+id/manga_chapters_label"
  148. app:layout_constraintLeft_toLeftOf="parent"/>
  149. <TextView
  150. android:id="@+id/manga_status"
  151. style="@style/TextAppearance.Regular.Body1.Secondary"
  152. android:layout_width="0dp"
  153. android:layout_height="wrap_content"
  154. android:layout_marginLeft="8dp"
  155. android:ellipsize="end"
  156. android:maxLines="1"
  157. android:textIsSelectable="false"
  158. app:layout_constraintBaseline_toBaselineOf="@+id/manga_status_label"
  159. app:layout_constraintLeft_toRightOf="@+id/manga_status_label"
  160. app:layout_constraintRight_toRightOf="parent"/>
  161. <TextView
  162. android:id="@+id/manga_source_label"
  163. style="@style/TextAppearance.Medium.Body2"
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:text="@string/manga_info_source_label"
  167. android:textIsSelectable="false"
  168. app:layout_constraintTop_toBottomOf="@+id/manga_status_label"
  169. app:layout_constraintLeft_toLeftOf="parent"/>
  170. <TextView
  171. android:id="@+id/manga_source"
  172. style="@style/TextAppearance.Regular.Body1.Secondary"
  173. android:layout_width="0dp"
  174. android:layout_height="wrap_content"
  175. android:layout_marginLeft="8dp"
  176. android:ellipsize="end"
  177. android:maxLines="1"
  178. android:textIsSelectable="false"
  179. app:layout_constraintBaseline_toBaselineOf="@+id/manga_source_label"
  180. app:layout_constraintLeft_toRightOf="@+id/manga_source_label"
  181. app:layout_constraintRight_toRightOf="parent"/>
  182. <TextView
  183. android:id="@+id/manga_genres_label"
  184. style="@style/TextAppearance.Medium.Body2"
  185. android:layout_width="wrap_content"
  186. android:layout_height="wrap_content"
  187. android:text="@string/manga_info_genres_label"
  188. android:textIsSelectable="false"
  189. app:layout_constraintTop_toBottomOf="@+id/manga_source_label"
  190. app:layout_constraintLeft_toLeftOf="parent"/>
  191. <TextView
  192. android:id="@+id/manga_genres"
  193. style="@style/TextAppearance.Regular.Body1.Secondary"
  194. android:layout_width="0dp"
  195. android:layout_height="wrap_content"
  196. android:textIsSelectable="false"
  197. app:layout_constraintTop_toBottomOf="@+id/manga_genres_label"
  198. app:layout_constraintLeft_toLeftOf="parent"
  199. app:layout_constraintRight_toRightOf="parent"/>
  200. </android.support.constraint.ConstraintLayout>
  201. </android.support.v4.widget.NestedScrollView>
  202. <android.support.v4.widget.NestedScrollView
  203. android:id="@+id/description_scrollview"
  204. android:layout_width="0dp"
  205. android:layout_height="0dp"
  206. android:layout_marginBottom="16dp"
  207. android:layout_marginEnd="8dp"
  208. android:layout_marginLeft="16dp"
  209. android:layout_marginRight="16dp"
  210. android:layout_marginStart="8dp"
  211. android:layout_marginTop="16dp"
  212. app:layout_constraintBottom_toBottomOf="parent"
  213. app:layout_constraintLeft_toLeftOf="parent"
  214. app:layout_constraintRight_toRightOf="parent"
  215. app:layout_constraintTop_toTopOf="@+id/guideline">
  216. <LinearLayout
  217. android:layout_width="match_parent"
  218. android:layout_height="wrap_content"
  219. android:orientation="vertical">
  220. <TextView
  221. android:id="@+id/manga_summary_label"
  222. style="@style/TextAppearance.Medium.Body2"
  223. android:layout_width="match_parent"
  224. android:layout_height="wrap_content"
  225. android:text="@string/description"
  226. android:textIsSelectable="false"/>
  227. <TextView
  228. android:id="@+id/manga_summary"
  229. style="@style/TextAppearance.Regular.Body1.Secondary"
  230. android:layout_width="match_parent"
  231. android:layout_height="wrap_content"
  232. android:textIsSelectable="false"/>
  233. </LinearLayout>
  234. </android.support.v4.widget.NestedScrollView>
  235. </android.support.constraint.ConstraintLayout>
  236. </android.support.v4.widget.SwipeRefreshLayout>