editor_fragment.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  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. <androidx.cardview.widget.CardView
  10. android:id="@+id/cardView"
  11. android:layout_width="match_parent"
  12. android:layout_height="?attr/actionBarSize"
  13. app:cardPreventCornerOverlap="false"
  14. app:cardCornerRadius="0dp"
  15. app:cardBackgroundColor="#5e35b1">
  16. <RelativeLayout
  17. android:layout_width="match_parent"
  18. android:layout_height="match_parent">
  19. <ImageButton
  20. android:id="@+id/create_message_close_button"
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_centerVertical="true"
  24. android:layout_marginStart="8dp"
  25. android:layout_marginLeft="8dp"
  26. android:background="?attr/selectableItemBackgroundBorderless"
  27. android:padding="8dp"
  28. android:src="@drawable/ic_baseline_close_24"
  29. app:tint="@android:color/white" />
  30. <TextView
  31. android:id="@+id/create_message_text_text"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_centerVertical="true"
  35. android:layout_marginStart="8dp"
  36. android:layout_marginLeft="8dp"
  37. android:layout_toEndOf="@+id/create_message_close_button"
  38. android:layout_toRightOf="@+id/create_message_close_button"
  39. android:text="@string/text_create_message"
  40. android:textColor="@android:color/white"
  41. android:textSize="20sp" />
  42. <ImageButton
  43. android:id="@+id/create_message_attach_button"
  44. android:layout_width="56dp"
  45. android:layout_height="match_parent"
  46. android:layout_marginStart="0dp"
  47. android:layout_marginLeft="0dp"
  48. android:layout_marginEnd="40dp"
  49. android:layout_marginRight="40dp"
  50. android:layout_toStartOf="@+id/create_message_send_button"
  51. android:layout_toLeftOf="@+id/create_message_send_button"
  52. android:layout_toEndOf="@+id/create_message_text_text"
  53. android:layout_toRightOf="@+id/create_message_text_text"
  54. android:background="?attr/selectableItemBackgroundBorderless"
  55. android:padding="8dp"
  56. android:src="@drawable/ic_baseline_attachment_24"
  57. app:tint="@android:color/white" />
  58. <ImageButton
  59. android:id="@+id/create_message_dots_button"
  60. android:layout_width="56dp"
  61. android:layout_height="match_parent"
  62. android:layout_marginStart="50dp"
  63. android:layout_marginLeft="50dp"
  64. android:layout_marginEnd="-10dp"
  65. android:layout_marginRight="-10dp"
  66. android:layout_toStartOf="@+id/create_message_send_button"
  67. android:layout_toLeftOf="@+id/create_message_send_button"
  68. android:layout_toEndOf="@+id/create_message_text_text"
  69. android:layout_toRightOf="@+id/create_message_text_text"
  70. android:background="?attr/selectableItemBackgroundBorderless"
  71. android:padding="8dp"
  72. android:src="@drawable/ic_round_pending_24"
  73. app:tint="@android:color/white" />
  74. <ImageButton
  75. android:id="@+id/create_message_send_button"
  76. android:layout_width="wrap_content"
  77. android:layout_height="wrap_content"
  78. android:layout_alignParentEnd="true"
  79. android:layout_alignParentRight="true"
  80. android:layout_centerVertical="true"
  81. android:layout_marginEnd="8dp"
  82. android:layout_marginRight="8dp"
  83. android:background="?attr/selectableItemBackground"
  84. android:padding="8dp"
  85. android:src="@drawable/ic_baseline_arrow_forward_ios_24"
  86. android:textColor="@android:color/white"
  87. app:tint="@color/white" />
  88. </RelativeLayout>
  89. </androidx.cardview.widget.CardView>
  90. <ScrollView
  91. android:layout_width="match_parent"
  92. android:layout_height="match_parent">
  93. <LinearLayout
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:orientation="vertical"
  97. android:gravity="top">
  98. <com.google.android.material.textfield.TextInputLayout
  99. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  100. android:id="@+id/create_message_sending_address_layout"
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:layout_marginStart="12dp"
  104. android:layout_marginLeft="12dp"
  105. android:layout_marginTop="12dp"
  106. android:layout_marginEnd="12dp"
  107. android:layout_marginRight="12dp"
  108. android:layout_marginBottom="12dp">
  109. <com.google.android.material.textfield.TextInputEditText
  110. android:id="@+id/create_message_sending_address_text"
  111. android:inputType="textEmailAddress"
  112. android:layout_width="match_parent"
  113. android:layout_height="wrap_content"
  114. android:hint="@string/hint_email_from" />
  115. </com.google.android.material.textfield.TextInputLayout>
  116. <com.google.android.material.textfield.TextInputLayout
  117. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  118. android:id="@+id/create_message_receiving_address_layout"
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:layout_marginStart="12dp"
  122. android:layout_marginLeft="12dp"
  123. android:layout_marginTop="12dp"
  124. android:layout_marginEnd="12dp"
  125. android:layout_marginRight="12dp"
  126. android:layout_marginBottom="12dp">
  127. <com.google.android.material.textfield.TextInputEditText
  128. android:id="@+id/create_message_receiving_address_text"
  129. android:inputType="textEmailAddress"
  130. android:layout_width="match_parent"
  131. android:layout_height="wrap_content"
  132. android:hint="@string/hint_email_to" />
  133. </com.google.android.material.textfield.TextInputLayout>
  134. <com.google.android.material.textfield.TextInputLayout
  135. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  136. android:id="@+id/create_message_cc_layout"
  137. android:layout_width="match_parent"
  138. android:layout_height="wrap_content"
  139. android:layout_marginStart="12dp"
  140. android:layout_marginLeft="12dp"
  141. android:layout_marginTop="12dp"
  142. android:layout_marginEnd="12dp"
  143. android:layout_marginRight="12dp"
  144. android:layout_marginBottom="12dp"
  145. app:layout_constraintTop_toBottomOf="@+id/create_message_sending_address_layout"
  146. tools:layout_editor_absoluteX="1dp">
  147. <com.google.android.material.textfield.TextInputEditText
  148. android:id="@+id/create_message_cc_text"
  149. android:inputType="textEmailAddress"
  150. android:layout_width="match_parent"
  151. android:layout_height="wrap_content"
  152. android:hint="CC ..." />
  153. </com.google.android.material.textfield.TextInputLayout>
  154. <com.google.android.material.textfield.TextInputLayout
  155. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  156. android:id="@+id/create_message_bcc_layout"
  157. android:layout_width="match_parent"
  158. android:layout_height="wrap_content"
  159. android:layout_marginStart="12dp"
  160. android:layout_marginLeft="12dp"
  161. android:layout_marginTop="12dp"
  162. android:layout_marginEnd="12dp"
  163. android:layout_marginRight="12dp"
  164. android:layout_marginBottom="12dp"
  165. app:layout_constraintTop_toBottomOf="@+id/create_message_sending_address_layout"
  166. tools:layout_editor_absoluteX="1dp">
  167. <com.google.android.material.textfield.TextInputEditText
  168. android:id="@+id/create_message_bcc_text"
  169. android:inputType="textEmailAddress"
  170. android:layout_width="match_parent"
  171. android:layout_height="wrap_content"
  172. android:hint="BCC ..." />
  173. </com.google.android.material.textfield.TextInputLayout>
  174. <com.google.android.material.textfield.TextInputLayout
  175. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  176. android:id="@+id/create_message_subject_layout"
  177. android:layout_width="match_parent"
  178. android:layout_height="wrap_content"
  179. android:layout_marginStart="12dp"
  180. android:layout_marginLeft="12dp"
  181. android:layout_marginTop="12dp"
  182. android:layout_marginEnd="12dp"
  183. android:layout_marginRight="12dp"
  184. android:layout_marginBottom="12dp"
  185. app:layout_constraintTop_toBottomOf="@+id/create_message_sending_address_layout"
  186. tools:layout_editor_absoluteX="1dp">
  187. <com.google.android.material.textfield.TextInputEditText
  188. android:id="@+id/create_message_subject_text"
  189. android:inputType="textEmailSubject"
  190. android:layout_width="match_parent"
  191. android:layout_height="wrap_content"
  192. android:hint="@string/hint_subject" />
  193. </com.google.android.material.textfield.TextInputLayout>
  194. <com.google.android.material.textfield.TextInputLayout
  195. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  196. android:id="@+id/create_message_body_layout"
  197. android:layout_width="match_parent"
  198. android:layout_height="wrap_content"
  199. android:layout_marginStart="12dp"
  200. android:layout_marginLeft="12dp"
  201. android:layout_marginTop="12dp"
  202. android:layout_marginEnd="12dp"
  203. android:layout_marginRight="12dp"
  204. android:layout_marginBottom="12dp"
  205. app:layout_constraintTop_toBottomOf="@+id/create_message_sending_address_layout"
  206. tools:layout_editor_absoluteX="1dp">
  207. <com.google.android.material.textfield.TextInputEditText
  208. android:id="@+id/create_message_body_text"
  209. android:layout_width="match_parent"
  210. android:layout_height="wrap_content"
  211. android:minHeight="160dp"
  212. android:textAlignment="viewStart"
  213. android:hint="@string/hint_message"
  214. android:inputType="textMultiLine"
  215. android:gravity="start" />
  216. </com.google.android.material.textfield.TextInputLayout>
  217. </LinearLayout>
  218. </ScrollView>
  219. </LinearLayout>