message_create_fragment.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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.messageCreateFragment">
  10. <androidx.cardview.widget.CardView
  11. android:id="@+id/cardView"
  12. android:layout_width="match_parent"
  13. android:layout_height="?attr/actionBarSize"
  14. app:cardBackgroundColor="#5e35b1">
  15. <RelativeLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="match_parent">
  18. <ImageButton
  19. android:id="@+id/create_message_close_button"
  20. android:layout_width="wrap_content"
  21. android:layout_height="wrap_content"
  22. android:layout_centerVertical="true"
  23. android:layout_marginLeft="8dp"
  24. android:layout_marginStart="8dp"
  25. android:background="?attr/selectableItemBackgroundBorderless"
  26. android:padding="8dp"
  27. android:src="@mipmap/ic_close_purple" />
  28. <TextView
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_centerVertical="true"
  32. android:layout_marginLeft="8dp"
  33. android:layout_marginStart="8dp"
  34. android:layout_toRightOf="@id/create_message_close_button"
  35. android:layout_toEndOf="@+id/create_message_close_button"
  36. android:text="Create Message"
  37. android:textColor="@android:color/white"
  38. android:textSize="20sp" />
  39. <TextView
  40. android:id="@+id/create_message_send_button"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:layout_alignParentRight="true"
  44. android:layout_alignParentEnd="true"
  45. android:layout_centerVertical="true"
  46. android:layout_marginRight="8dp"
  47. android:layout_marginEnd="8dp"
  48. android:background="?attr/selectableItemBackground"
  49. android:padding="8dp"
  50. android:text="SEND"
  51. android:textColor="@android:color/white" />
  52. </RelativeLayout>
  53. </androidx.cardview.widget.CardView>
  54. <com.google.android.material.textfield.TextInputLayout
  55. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  56. android:id="@+id/create_message_sending_address_layout"
  57. android:layout_width="match_parent"
  58. android:layout_height="wrap_content"
  59. android:layout_marginStart="12dp"
  60. android:layout_marginLeft="12dp"
  61. android:layout_marginTop="12dp"
  62. android:layout_marginEnd="12dp"
  63. android:layout_marginRight="12dp"
  64. android:layout_marginBottom="12dp">
  65. <com.google.android.material.textfield.TextInputEditText
  66. android:id="@+id/create_message_sending_address_text"
  67. android:inputType="textEmailAddress"
  68. android:layout_width="match_parent"
  69. android:layout_height="wrap_content"
  70. android:hint="Sending Mail Address" />
  71. </com.google.android.material.textfield.TextInputLayout>
  72. <com.google.android.material.textfield.TextInputLayout
  73. style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox"
  74. android:id="@+id/create_message_subject_layout"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  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. app:layout_constraintTop_toBottomOf="@+id/create_message_sending_address_layout"
  84. tools:layout_editor_absoluteX="1dp">
  85. <com.google.android.material.textfield.TextInputEditText
  86. android:id="@+id/create_message_subject_text"
  87. android:inputType="textEmailSubject"
  88. android:layout_width="match_parent"
  89. android:layout_height="wrap_content"
  90. android:hint="Subject" />
  91. </com.google.android.material.textfield.TextInputLayout>
  92. </LinearLayout>