fragment_manga_info.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:orientation="vertical"
  7. tools:context="eu.kanade.tachiyomi.ui.catalogue.CatalogueFragment">
  8. <!-- It seems I have to wrap everything in SwipeRefreshLayout because it always take the entire height
  9. and the description can't be seen.
  10. Maybe with Relative layout it's better. We shouldn't put this layout inside the description layout
  11. because the description should be scrollable and gestures could conflict with this layout.
  12. Leaving it like this for now.
  13. -->
  14. <android.support.v4.widget.SwipeRefreshLayout
  15. android:id="@+id/swipe_refresh"
  16. android:layout_width="match_parent"
  17. android:orientation="vertical"
  18. android:layout_height="match_parent">
  19. <ScrollView
  20. android:layout_width="match_parent"
  21. android:layout_height="match_parent">
  22. <LinearLayout
  23. android:layout_width="match_parent"
  24. android:layout_height="wrap_content"
  25. android:clickable="true"
  26. android:orientation="vertical">
  27. <LinearLayout
  28. android:layout_width="match_parent"
  29. android:layout_height="wrap_content"
  30. android:padding="10dp">
  31. <RelativeLayout
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:background="@drawable/bkg_shadow_img"
  35. android:focusable="false"
  36. android:focusableInTouchMode="false"
  37. android:gravity="center"
  38. android:padding="4dp">
  39. <ImageView
  40. android:id="@+id/manga_cover"
  41. android:layout_width="138dp"
  42. android:layout_height="190dp"
  43. android:focusable="false"
  44. android:focusableInTouchMode="false"
  45. android:scaleType="fitXY"
  46. android:visibility="visible" />
  47. </RelativeLayout>
  48. <RelativeLayout
  49. android:id="@+id/grid_item_description"
  50. android:layout_width="fill_parent"
  51. android:layout_height="wrap_content"
  52. android:focusable="false"
  53. android:focusableInTouchMode="false"
  54. android:paddingLeft="15.0dip">
  55. <TextView
  56. android:id="@+id/manga_author_label"
  57. style="@style/manga_detail_label"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:layout_alignParentLeft="true"
  61. android:layout_alignRight="@+id/manga_genres_label"
  62. android:layout_marginTop="5dp"
  63. android:focusable="false"
  64. android:focusableInTouchMode="false"
  65. android:text="@string/author" />
  66. <TextView
  67. android:id="@+id/manga_author"
  68. style="@style/manga_detail_text"
  69. android:layout_width="fill_parent"
  70. android:layout_height="wrap_content"
  71. android:layout_alignBaseline="@id/manga_author_label"
  72. android:layout_toRightOf="@id/manga_author_label"
  73. android:ellipsize="end"
  74. android:focusable="false"
  75. android:focusableInTouchMode="false"
  76. android:maxLines="1"
  77. android:singleLine="true" />
  78. <TextView
  79. android:id="@+id/manga_artist_label"
  80. style="@style/manga_detail_label"
  81. android:layout_width="wrap_content"
  82. android:layout_height="wrap_content"
  83. android:layout_alignParentLeft="true"
  84. android:layout_alignRight="@id/manga_genres_label"
  85. android:layout_below="@id/manga_author_label"
  86. android:focusable="false"
  87. android:focusableInTouchMode="false"
  88. android:text="@string/artist" />
  89. <TextView
  90. android:id="@+id/manga_artist"
  91. style="@style/manga_detail_text"
  92. android:layout_width="fill_parent"
  93. android:layout_height="wrap_content"
  94. android:layout_alignBaseline="@id/manga_artist_label"
  95. android:layout_toRightOf="@id/manga_artist_label"
  96. android:ellipsize="end"
  97. android:focusable="false"
  98. android:focusableInTouchMode="false"
  99. android:maxLines="1"
  100. android:singleLine="true" />
  101. <TextView
  102. android:id="@+id/manga_chapters_label"
  103. style="@style/manga_detail_label"
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. android:layout_alignParentLeft="true"
  107. android:layout_below="@id/manga_artist_label"
  108. android:focusable="false"
  109. android:focusableInTouchMode="false"
  110. android:text="@string/chapters" />
  111. <TextView
  112. android:id="@+id/manga_chapters"
  113. style="@style/manga_detail_text"
  114. android:layout_width="fill_parent"
  115. android:layout_height="wrap_content"
  116. android:layout_alignBaseline="@id/manga_chapters_label"
  117. android:layout_toRightOf="@id/manga_chapters_label"
  118. android:ellipsize="end"
  119. android:focusable="false"
  120. android:focusableInTouchMode="false"
  121. android:maxLines="1"
  122. android:singleLine="true" />
  123. <TextView
  124. android:id="@+id/manga_status_label"
  125. style="@style/manga_detail_label"
  126. android:layout_width="wrap_content"
  127. android:layout_height="wrap_content"
  128. android:layout_alignParentLeft="true"
  129. android:layout_alignRight="@id/manga_genres_label"
  130. android:layout_below="@id/manga_chapters_label"
  131. android:focusable="false"
  132. android:focusableInTouchMode="false"
  133. android:text="@string/status" />
  134. <TextView
  135. android:id="@+id/manga_status"
  136. style="@style/manga_detail_text"
  137. android:layout_width="fill_parent"
  138. android:layout_height="wrap_content"
  139. android:layout_alignBaseline="@id/manga_status_label"
  140. android:layout_toRightOf="@id/manga_status_label"
  141. android:ellipsize="end"
  142. android:focusable="false"
  143. android:focusableInTouchMode="false"
  144. android:maxLines="1"
  145. android:singleLine="true" />
  146. <TextView
  147. android:id="@+id/manga_source_label"
  148. style="@style/manga_detail_label"
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_alignParentLeft="true"
  152. android:layout_below="@id/manga_status_label"
  153. android:focusable="false"
  154. android:focusableInTouchMode="false"
  155. android:text="@string/source" />
  156. <TextView
  157. android:id="@+id/manga_source"
  158. style="@style/manga_detail_text"
  159. android:layout_width="fill_parent"
  160. android:layout_height="wrap_content"
  161. android:layout_alignBaseline="@id/manga_source_label"
  162. android:layout_toRightOf="@id/manga_source_label"
  163. android:ellipsize="end"
  164. android:focusable="false"
  165. android:focusableInTouchMode="false"
  166. android:maxLines="1"
  167. android:singleLine="true" />
  168. <TextView
  169. android:id="@+id/manga_genres_label"
  170. style="@style/manga_detail_label"
  171. android:layout_width="wrap_content"
  172. android:layout_height="wrap_content"
  173. android:layout_alignParentLeft="true"
  174. android:layout_below="@id/manga_source_label"
  175. android:focusable="false"
  176. android:focusableInTouchMode="false"
  177. android:text="@string/genres" />
  178. <TextView
  179. android:id="@+id/manga_genres"
  180. style="@style/manga_detail_text"
  181. android:layout_width="fill_parent"
  182. android:layout_height="wrap_content"
  183. android:layout_below="@id/manga_genres_label"
  184. android:focusable="false"
  185. android:focusableInTouchMode="false"
  186. android:singleLine="false" />
  187. </RelativeLayout>
  188. </LinearLayout>
  189. <LinearLayout
  190. android:layout_width="match_parent"
  191. android:layout_height="wrap_content"
  192. android:orientation="horizontal"
  193. android:padding="10dp">
  194. <Button
  195. android:id="@+id/action_favorite"
  196. android:layout_width="match_parent"
  197. android:layout_height="wrap_content"
  198. android:text="@string/add_to_library" />
  199. </LinearLayout>
  200. <LinearLayout
  201. android:layout_width="match_parent"
  202. android:layout_height="match_parent"
  203. android:orientation="vertical"
  204. android:padding="10dp">
  205. <TextView
  206. android:id="@+id/manga_summary_label"
  207. style="@style/manga_detail_label"
  208. android:layout_width="match_parent"
  209. android:layout_height="wrap_content"
  210. android:focusable="false"
  211. android:focusableInTouchMode="false"
  212. android:singleLine="false"
  213. android:text="@string/description" />
  214. <TextView
  215. android:id="@+id/manga_summary"
  216. style="@style/manga_detail_text"
  217. android:layout_width="match_parent"
  218. android:layout_height="wrap_content"
  219. android:focusable="false"
  220. android:focusableInTouchMode="false"
  221. android:singleLine="false" />
  222. </LinearLayout>
  223. </LinearLayout>
  224. </ScrollView>
  225. </android.support.v4.widget.SwipeRefreshLayout>
  226. </LinearLayout>