message_show_fragment.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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.show.MessageShowFragment">
  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. android:src="@mipmap/ic_close_purple" />
  29. <ImageButton
  30. android:id="@+id/show_message_dots_button"
  31. android:layout_width="56dp"
  32. android:layout_height="match_parent"
  33. android:layout_marginStart="320dp"
  34. android:layout_marginLeft="320dp"
  35. android:background="?attr/selectableItemBackgroundBorderless"
  36. android:padding="8dp"
  37. android:src="@mipmap/ic_more_vert_dots_purple" />
  38. <ImageButton
  39. android:id="@+id/show_message_attach_button"
  40. android:layout_width="56dp"
  41. android:layout_height="match_parent"
  42. android:layout_marginStart="-114dp"
  43. android:layout_marginLeft="-114dp"
  44. android:layout_toEndOf="@id/show_message_dots_button"
  45. android:layout_toRightOf="@id/show_message_dots_button"
  46. android:background="?attr/selectableItemBackgroundBorderless"
  47. android:padding="8dp"
  48. android:src="@mipmap/ic_attach_purple" />
  49. </RelativeLayout>
  50. </androidx.cardview.widget.CardView>
  51. <ScrollView
  52. android:layout_width="match_parent"
  53. android:layout_height="match_parent">
  54. <LinearLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:orientation="vertical"
  58. android:gravity="top">
  59. <LinearLayout
  60. android:layout_width="match_parent"
  61. android:layout_height="wrap_content"
  62. android:background="@drawable/textview_border"
  63. android:layout_marginStart="12dp"
  64. android:layout_marginLeft="12dp"
  65. android:layout_marginTop="12dp"
  66. android:layout_marginEnd="12dp"
  67. android:layout_marginRight="12dp"
  68. android:layout_marginBottom="12dp">
  69. <TextView
  70. android:id="@+id/show_From"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  74. android:layout_marginStart="12dp"
  75. android:layout_marginLeft="12dp"
  76. android:layout_marginTop="12dp"
  77. android:layout_marginEnd="12dp"
  78. android:layout_marginRight="12dp"
  79. android:layout_marginBottom="12dp"/>
  80. </LinearLayout>
  81. <LinearLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:background="@drawable/textview_border"
  85. android:layout_marginStart="12dp"
  86. android:layout_marginLeft="12dp"
  87. android:layout_marginTop="12dp"
  88. android:layout_marginEnd="12dp"
  89. android:layout_marginRight="12dp"
  90. android:layout_marginBottom="12dp">
  91. <TextView
  92. android:id="@+id/show_To"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:layout_marginStart="12dp"
  96. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  97. android:layout_marginLeft="12dp"
  98. android:layout_marginTop="12dp"
  99. android:layout_marginEnd="12dp"
  100. android:layout_marginRight="12dp"
  101. android:layout_marginBottom="12dp" />
  102. </LinearLayout>
  103. <LinearLayout
  104. android:background="@drawable/textview_border"
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:layout_marginStart="12dp"
  108. android:layout_marginLeft="12dp"
  109. android:layout_marginTop="12dp"
  110. android:layout_marginEnd="12dp"
  111. android:layout_marginRight="12dp"
  112. android:layout_marginBottom="12dp">
  113. <TextView
  114. android:id="@+id/show_Subject"
  115. android:layout_width="match_parent"
  116. android:layout_height="match_parent"
  117. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  118. android:layout_marginStart="12dp"
  119. android:layout_marginLeft="12dp"
  120. android:layout_marginTop="12dp"
  121. android:layout_marginEnd="12dp"
  122. android:layout_marginRight="12dp"
  123. android:layout_marginBottom="12dp"/>
  124. </LinearLayout>
  125. <LinearLayout
  126. android:background="@drawable/textview_border"
  127. android:layout_width="match_parent"
  128. android:layout_height="wrap_content"
  129. android:layout_marginStart="12dp"
  130. android:layout_marginLeft="12dp"
  131. android:layout_marginTop="12dp"
  132. android:layout_marginEnd="12dp"
  133. android:layout_marginRight="12dp"
  134. android:layout_marginBottom="12dp">
  135. <TextView
  136. android:id="@+id/show_Message"
  137. android:layout_width="match_parent"
  138. android:layout_height="wrap_content"
  139. android:minHeight="200dp"
  140. android:textAppearance="@style/TextAppearance.AppCompat.Body1"
  141. android:layout_marginStart="12dp"
  142. android:layout_marginLeft="12dp"
  143. android:layout_marginTop="12dp"
  144. android:layout_marginEnd="12dp"
  145. android:layout_marginRight="12dp"
  146. android:layout_marginBottom="12dp" />
  147. </LinearLayout>
  148. </LinearLayout>
  149. </ScrollView>
  150. <FrameLayout
  151. android:id="@+id/show_Layout"
  152. android:layout_width="match_parent"
  153. android:layout_height="match_parent" />
  154. </LinearLayout>