fragment_manga_info.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <android.support.design.widget.CoordinatorLayout
  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="match_parent"
  7. android:layout_height="match_parent"
  8. tools:context="eu.kanade.tachiyomi.ui.catalogue.CatalogueFragment">
  9. <android.support.v4.widget.SwipeRefreshLayout
  10. android:id="@id/swipe_refresh"
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent">
  13. <LinearLayout
  14. android:id="@+id/global_view"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:orientation="vertical">
  18. <RelativeLayout
  19. android:id="@+id/top_view"
  20. android:layout_width="match_parent"
  21. android:layout_height="0dp"
  22. android:layout_weight="0.4">
  23. <ImageView
  24. android:id="@+id/backdrop"
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent"
  27. android:alpha="0.2"
  28. android:contentDescription="@string/description_backdrop"/>
  29. <LinearLayout
  30. android:layout_width="match_parent"
  31. android:layout_height="match_parent"
  32. android:orientation="horizontal">
  33. <ImageView
  34. android:id="@+id/manga_cover"
  35. android:layout_width="0dp"
  36. android:layout_height="match_parent"
  37. android:layout_margin="@dimen/activity_vertical_margin"
  38. android:layout_weight="0.35"
  39. android:contentDescription="@string/description_cover"/>
  40. <RelativeLayout
  41. android:layout_width="0dp"
  42. android:layout_height="match_parent"
  43. android:layout_margin="@dimen/activity_vertical_margin"
  44. android:layout_weight="0.65">
  45. <android.support.v4.widget.NestedScrollView
  46. android:layout_width="match_parent"
  47. android:layout_height="match_parent">
  48. <RelativeLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="match_parent">
  51. <LinearLayout
  52. android:id="@+id/manga_author_view"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal">
  56. <TextView
  57. android:id="@+id/manga_author_label"
  58. style="@style/TextAppearance.Medium.Body2"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:ellipsize="end"
  62. android:paddingRight="10dp"
  63. android:singleLine="true"
  64. android:text="@string/manga_info_author_label"
  65. android:textIsSelectable="false"
  66. />
  67. <TextView
  68. android:id="@+id/manga_author"
  69. style="@style/TextAppearance.Regular.Body1.Secondary"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:ellipsize="end"
  73. android:singleLine="true"
  74. android:textIsSelectable="false"
  75. />
  76. </LinearLayout>
  77. <LinearLayout
  78. android:id="@+id/manga_artist_view"
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:layout_below="@+id/manga_author_view"
  82. android:orientation="horizontal">
  83. <TextView
  84. android:id="@+id/manga_artist_label"
  85. style="@style/TextAppearance.Medium.Body2"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:ellipsize="end"
  89. android:paddingRight="10dp"
  90. android:singleLine="true"
  91. android:text="@string/manga_info_artist_label"
  92. android:textIsSelectable="false"
  93. />
  94. <TextView
  95. android:id="@+id/manga_artist"
  96. style="@style/TextAppearance.Regular.Body1.Secondary"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:ellipsize="end"
  100. android:singleLine="true"
  101. android:textIsSelectable="false"
  102. />
  103. </LinearLayout>
  104. <LinearLayout
  105. android:id="@+id/manga_chapters_view"
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:layout_below="@+id/manga_artist_view"
  109. android:orientation="horizontal">
  110. <TextView
  111. android:id="@+id/manga_chapters_label"
  112. style="@style/TextAppearance.Medium.Body2"
  113. android:layout_width="wrap_content"
  114. android:layout_height="wrap_content"
  115. android:ellipsize="end"
  116. android:paddingRight="10dp"
  117. android:singleLine="true"
  118. android:text="@string/manga_info_chapters_label"
  119. android:textIsSelectable="false"
  120. />
  121. <TextView
  122. android:id="@+id/manga_chapters"
  123. style="@style/TextAppearance.Regular.Body1.Secondary"
  124. android:layout_width="wrap_content"
  125. android:layout_height="wrap_content"
  126. android:ellipsize="end"
  127. android:singleLine="true"
  128. android:textIsSelectable="false"
  129. />
  130. </LinearLayout>
  131. <LinearLayout
  132. android:id="@+id/manga_status_view"
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:layout_below="@+id/manga_chapters_view"
  136. android:orientation="horizontal">
  137. <TextView
  138. android:id="@+id/manga_status_label"
  139. style="@style/TextAppearance.Medium.Body2"
  140. android:layout_width="wrap_content"
  141. android:layout_height="wrap_content"
  142. android:ellipsize="end"
  143. android:paddingRight="10dp"
  144. android:singleLine="true"
  145. android:text="@string/manga_info_status_label"
  146. android:textIsSelectable="false"
  147. />
  148. <TextView
  149. android:id="@+id/manga_status"
  150. style="@style/TextAppearance.Regular.Body1.Secondary"
  151. android:layout_width="wrap_content"
  152. android:layout_height="wrap_content"
  153. android:ellipsize="end"
  154. android:singleLine="true"
  155. android:textIsSelectable="false"
  156. />
  157. </LinearLayout>
  158. <LinearLayout
  159. android:id="@+id/manga_source_view"
  160. android:layout_width="match_parent"
  161. android:layout_height="wrap_content"
  162. android:layout_below="@+id/manga_status_view"
  163. android:orientation="horizontal">
  164. <TextView
  165. android:id="@+id/manga_source_label"
  166. style="@style/TextAppearance.Medium.Body2"
  167. android:layout_width="wrap_content"
  168. android:layout_height="wrap_content"
  169. android:ellipsize="end"
  170. android:paddingRight="10dp"
  171. android:singleLine="true"
  172. android:text="@string/manga_info_source_label"
  173. android:textIsSelectable="false"
  174. />
  175. <TextView
  176. android:id="@+id/manga_source"
  177. style="@style/TextAppearance.Regular.Body1.Secondary"
  178. android:layout_width="wrap_content"
  179. android:layout_height="wrap_content"
  180. android:ellipsize="end"
  181. android:singleLine="true"
  182. android:textIsSelectable="false"
  183. />
  184. </LinearLayout>
  185. <LinearLayout
  186. android:id="@+id/manga_genres_view"
  187. android:layout_width="match_parent"
  188. android:layout_height="wrap_content"
  189. android:layout_below="@+id/manga_source_view"
  190. android:orientation="vertical">
  191. <TextView
  192. android:id="@+id/manga_genres_label"
  193. style="@style/TextAppearance.Medium.Body2"
  194. android:layout_width="wrap_content"
  195. android:layout_height="wrap_content"
  196. android:ellipsize="end"
  197. android:paddingRight="10dp"
  198. android:singleLine="true"
  199. android:text="@string/manga_info_genres_label"
  200. android:textIsSelectable="false"
  201. />
  202. <TextView
  203. android:id="@+id/manga_genres"
  204. style="@style/TextAppearance.Regular.Body1.Secondary"
  205. android:layout_width="wrap_content"
  206. android:layout_height="wrap_content"
  207. android:ellipsize="end"
  208. android:singleLine="false"
  209. android:textIsSelectable="false"
  210. />
  211. </LinearLayout>
  212. </RelativeLayout>
  213. </android.support.v4.widget.NestedScrollView>
  214. </RelativeLayout>
  215. </LinearLayout>
  216. </RelativeLayout>
  217. <android.support.v4.widget.NestedScrollView
  218. android:id="@+id/bottom_view"
  219. android:layout_width="match_parent"
  220. android:layout_height="0dp"
  221. android:layout_margin="@dimen/activity_vertical_margin"
  222. android:layout_weight="0.6">
  223. <LinearLayout
  224. android:layout_width="match_parent"
  225. android:layout_height="wrap_content"
  226. android:orientation="vertical">
  227. <TextView
  228. android:id="@+id/manga_summary_label"
  229. style="@style/TextAppearance.Medium.Body2"
  230. android:layout_width="match_parent"
  231. android:layout_height="wrap_content"
  232. android:ellipsize="end"
  233. android:paddingRight="10dp"
  234. android:singleLine="true"
  235. android:text="@string/description"
  236. android:textIsSelectable="false"/>
  237. <TextView
  238. android:id="@+id/manga_summary"
  239. style="@style/TextAppearance.Regular.Body1.Secondary"
  240. android:layout_width="match_parent"
  241. android:layout_height="wrap_content"
  242. android:ellipsize="end"
  243. android:singleLine="false"
  244. android:textIsSelectable="false"
  245. />
  246. </LinearLayout>
  247. </android.support.v4.widget.NestedScrollView>
  248. </LinearLayout>
  249. </android.support.v4.widget.SwipeRefreshLayout>
  250. <android.support.design.widget.FloatingActionButton
  251. android:id="@+id/fab_favorite"
  252. style="@style/Theme.Widget.FAB"
  253. android:layout_gravity=""
  254. app:layout_anchor="@id/top_view"
  255. app:layout_anchorGravity="bottom|right|end"
  256. app:layout_behavior=""
  257. app:srcCompat="@drawable/ic_bookmark_border_white_24dp"/>
  258. </android.support.design.widget.CoordinatorLayout>