reader_fragment.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:id="@+id/messageFragment"
  8. android:orientation="vertical"
  9. tools:context=".ui.reader.ReaderFragment">
  10. <androidx.cardview.widget.CardView
  11. android:id="@+id/cardShowView"
  12. android:layout_width="match_parent"
  13. android:layout_height="?attr/actionBarSize"
  14. app:cardBackgroundColor="#5e35b1"
  15. tools:ignore="MissingConstraints">
  16. <RelativeLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent">
  19. <ImageButton
  20. android:id="@+id/show_message_close_button"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_centerVertical="true"
  24. android:layout_marginLeft="0dp"
  25. android:layout_marginStart="0dp"
  26. android:background="?attr/selectableItemBackgroundBorderless"
  27. android:padding="8dp"
  28. app:tint="@android:color/white"
  29. android:src="@drawable/ic_baseline_close_24" />
  30. <ImageButton
  31. android:id="@+id/show_message_dots_button"
  32. android:layout_width="56dp"
  33. android:layout_height="match_parent"
  34. android:layout_marginStart="320dp"
  35. android:layout_marginLeft="320dp"
  36. android:background="?attr/selectableItemBackgroundBorderless"
  37. android:padding="8dp"
  38. app:tint="@android:color/white"
  39. android:src="@drawable/ic_round_pending_24" />
  40. <ImageButton
  41. android:id="@+id/show_message_attach_button"
  42. android:layout_width="56dp"
  43. android:layout_height="match_parent"
  44. android:layout_marginStart="-114dp"
  45. android:layout_marginLeft="-114dp"
  46. android:layout_toEndOf="@id/show_message_dots_button"
  47. android:layout_toRightOf="@id/show_message_dots_button"
  48. android:background="?attr/selectableItemBackgroundBorderless"
  49. android:padding="8dp"
  50. app:tint="@android:color/white"
  51. android:src="@drawable/ic_baseline_attachment_24" />
  52. </RelativeLayout>
  53. </androidx.cardview.widget.CardView>
  54. <ScrollView
  55. android:layout_width="match_parent"
  56. android:layout_height="match_parent">
  57. <LinearLayout
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:orientation="vertical"
  61. android:gravity="top">
  62. <GridLayout
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:background="@drawable/textview_border"
  66. android:layout_marginStart="12dp"
  67. android:layout_marginLeft="12dp"
  68. android:layout_marginTop="12dp"
  69. android:layout_marginEnd="12dp"
  70. android:layout_marginRight="12dp"
  71. android:layout_marginBottom="12dp">
  72. <TextView
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_row="0"
  76. android:layout_column="0"
  77. android:layout_marginStart="12dp"
  78. android:layout_marginLeft="12dp"
  79. android:layout_marginTop="12dp"
  80. android:layout_marginEnd="12dp"
  81. android:layout_marginRight="12dp"
  82. android:layout_marginBottom="12dp"
  83. android:text="@string/show_from"
  84. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  85. <TextView
  86. android:id="@+id/show_From"
  87. android:layout_width="288dp"
  88. android:layout_height="wrap_content"
  89. android:layout_marginStart="12dp"
  90. android:layout_marginLeft="12dp"
  91. android:layout_marginTop="12dp"
  92. android:layout_marginEnd="12dp"
  93. android:layout_marginRight="12dp"
  94. android:layout_marginBottom="12dp"
  95. android:hint="@string/show_from"
  96. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  97. </GridLayout>
  98. <GridLayout
  99. android:layout_width="match_parent"
  100. android:layout_height="wrap_content"
  101. android:background="@drawable/textview_border"
  102. android:layout_marginStart="12dp"
  103. android:layout_marginLeft="12dp"
  104. android:layout_marginTop="12dp"
  105. android:layout_marginEnd="12dp"
  106. android:layout_marginRight="12dp"
  107. android:layout_marginBottom="12dp">
  108. <TextView
  109. android:layout_width="wrap_content"
  110. android:layout_height="wrap_content"
  111. android:layout_row="0"
  112. android:layout_column="0"
  113. android:layout_marginStart="12dp"
  114. android:layout_marginLeft="12dp"
  115. android:layout_marginTop="12dp"
  116. android:layout_marginEnd="12dp"
  117. android:layout_marginRight="12dp"
  118. android:layout_marginBottom="12dp"
  119. android:text="@string/show_To"
  120. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  121. <TextView
  122. android:id="@+id/show_To"
  123. android:layout_width="306dp"
  124. android:layout_height="wrap_content"
  125. android:layout_marginStart="12dp"
  126. android:layout_marginLeft="12dp"
  127. android:layout_marginTop="12dp"
  128. android:layout_marginEnd="12dp"
  129. android:layout_marginRight="12dp"
  130. android:layout_marginBottom="12dp"
  131. android:hint="@string/show_To"
  132. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  133. </GridLayout>
  134. <GridLayout
  135. android:background="@drawable/textview_border"
  136. android:layout_width="match_parent"
  137. android:layout_height="wrap_content"
  138. android:layout_marginStart="12dp"
  139. android:layout_marginLeft="12dp"
  140. android:layout_marginTop="12dp"
  141. android:layout_marginEnd="12dp"
  142. android:layout_marginRight="12dp"
  143. android:layout_marginBottom="12dp">
  144. <TextView
  145. android:layout_width="wrap_content"
  146. android:layout_height="wrap_content"
  147. android:layout_row="0"
  148. android:layout_column="0"
  149. android:layout_marginStart="12dp"
  150. android:layout_marginLeft="12dp"
  151. android:layout_marginTop="12dp"
  152. android:layout_marginEnd="12dp"
  153. android:layout_marginRight="12dp"
  154. android:layout_marginBottom="12dp"
  155. android:text="@string/show_subject"
  156. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  157. <TextView
  158. android:id="@+id/show_subject"
  159. android:layout_width="280dp"
  160. android:layout_height="wrap_content"
  161. android:layout_marginStart="12dp"
  162. android:layout_marginLeft="12dp"
  163. android:layout_marginTop="12dp"
  164. android:layout_marginEnd="12dp"
  165. android:layout_marginRight="12dp"
  166. android:layout_marginBottom="12dp"
  167. android:hint="@string/show_subject"
  168. android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
  169. </GridLayout>
  170. <GridLayout
  171. android:layout_width="wrap_content"
  172. android:layout_height="wrap_content"
  173. android:layout_marginStart="12dp"
  174. android:layout_marginLeft="12dp"
  175. android:layout_marginTop="2dp"
  176. android:layout_marginEnd="12dp"
  177. android:layout_marginRight="12dp"
  178. android:layout_marginBottom="2dp">
  179. <Button
  180. android:id="@+id/show_cc"
  181. android:layout_width="wrap_content"
  182. android:layout_height="wrap_content"
  183. android:layout_marginStart="85dp"
  184. android:layout_marginLeft="85dp"
  185. android:layout_marginTop="0dp"
  186. android:layout_marginEnd="16dp"
  187. android:layout_marginRight="16dp"
  188. android:layout_marginBottom="0dp"
  189. android:text="@string/show_cc" />
  190. <Button
  191. android:id="@+id/show_bcc"
  192. android:layout_width="wrap_content"
  193. android:layout_height="wrap_content"
  194. android:layout_row="0"
  195. android:layout_column="1"
  196. android:layout_marginStart="18dp"
  197. android:layout_marginLeft="18dp"
  198. android:layout_marginTop="0dp"
  199. android:layout_marginEnd="16dp"
  200. android:layout_marginRight="16dp"
  201. android:layout_marginBottom="0dp"
  202. android:text="@string/show_bcc" />
  203. <TextView
  204. android:layout_width="wrap_content"
  205. android:layout_height="wrap_content"
  206. android:layout_column="0"
  207. android:layout_row="1"
  208. android:text="@string/show_date"
  209. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  210. android:textSize="20dp"/>
  211. <TextView
  212. android:id="@+id/show_date"
  213. android:layout_width="match_parent"
  214. android:layout_height="wrap_content"
  215. android:layout_column="1"
  216. android:layout_row="1"
  217. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  218. android:textSize="20dp"/>
  219. </GridLayout>
  220. <LinearLayout
  221. android:background="@drawable/textview_border"
  222. android:layout_width="match_parent"
  223. android:layout_height="wrap_content"
  224. android:layout_marginStart="12dp"
  225. android:layout_marginLeft="12dp"
  226. android:layout_marginTop="12dp"
  227. android:layout_marginEnd="12dp"
  228. android:layout_marginRight="12dp"
  229. android:layout_marginBottom="12dp">
  230. <TextView
  231. android:id="@+id/show_Message"
  232. android:layout_width="match_parent"
  233. android:layout_height="wrap_content"
  234. android:minHeight="200dp"
  235. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  236. android:hint="@string/show_message"
  237. android:layout_marginStart="12dp"
  238. android:layout_marginLeft="12dp"
  239. android:layout_marginTop="12dp"
  240. android:layout_marginEnd="12dp"
  241. android:layout_marginRight="12dp"
  242. android:layout_marginBottom="12dp" />
  243. </LinearLayout>
  244. </LinearLayout>
  245. </ScrollView>
  246. <FrameLayout
  247. android:id="@+id/show_Layout"
  248. android:layout_width="match_parent"
  249. android:layout_height="match_parent" />
  250. </LinearLayout>