Guest User

123

a guest
Sep 30th, 2020
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.88 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout 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:id="@+id/mainContainer"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:background="@color/background_contest_compilation"
  9. android:focusable="true"
  10. android:focusableInTouchMode="true">
  11.  
  12. <com.google.android.material.appbar.AppBarLayout
  13. android:id="@+id/appbar"
  14. style="@style/WannaHolidayTheme.AppBarOverlay.Tender"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content">
  17.  
  18. <androidx.appcompat.widget.Toolbar
  19. android:id="@+id/toolbar"
  20. android:layout_width="match_parent"
  21. android:layout_height="?attr/actionBarSize"
  22. app:navigationIcon="@drawable/ic_compilation_close_reviews"
  23. app:title="@string/compilation_reviews_fragment_title"
  24. app:titleTextColor="@color/white" />
  25. </com.google.android.material.appbar.AppBarLayout>
  26.  
  27. <androidx.recyclerview.widget.RecyclerView
  28. android:id="@+id/recyclerView"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:layout_marginBottom="40dp"
  32. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  33. app:layout_behavior="@string/appbar_scrolling_view_behavior" />
  34.  
  35. <LinearLayout
  36. android:id="@+id/emptyContainer"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:layout_gravity="center_horizontal"
  40. android:orientation="vertical"
  41. android:paddingStart="16dp"
  42. android:paddingLeft="16dp"
  43. android:paddingEnd="16dp"
  44. android:paddingRight="16dp"
  45. android:visibility="gone"
  46. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  47. tools:visibility="visible">
  48.  
  49. <androidx.appcompat.widget.AppCompatImageView
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_gravity="center_horizontal"
  53. app:srcCompat="@drawable/ic_compilation_message"
  54. tools:ignore="ContentDescription" />
  55.  
  56. <TextView
  57. android:id="@+id/emptyTextView"
  58. style="@style/WannaHolidayTheme.Body2TextView"
  59. android:layout_width="wrap_content"
  60. android:layout_height="wrap_content"
  61. android:layout_gravity="center"
  62. android:layout_marginTop="16dp"
  63. android:gravity="center"
  64. android:text="@string/user_service_comment_empty"
  65. android:textColor="@color/text_secondary_light" />
  66. </LinearLayout>
  67.  
  68. <com.google.android.material.bottomappbar.BottomAppBar
  69. android:id="@+id/bottomAppBar"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. app:layout_anchor="@id/bottomSheet" />
  73.  
  74. <androidx.constraintlayout.widget.ConstraintLayout
  75. android:id="@+id/bottomSheet"
  76. android:layout_width="match_parent"
  77. android:layout_height="wrap_content"
  78. android:background="@color/white"
  79. app:behavior_peekHeight="40dp"
  80. app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
  81.  
  82. <androidx.constraintlayout.utils.widget.ImageFilterView
  83. android:id="@+id/openCloseImageView"
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:layout_gravity="center_vertical"
  87. android:layout_marginStart="16dp"
  88. android:layout_marginTop="8dp"
  89. android:background="?attr/selectableItemBackgroundBorderless"
  90. android:contentDescription="@null"
  91. app:altSrc="@drawable/ic_review_close"
  92. app:crossfade="0"
  93. app:layout_constraintStart_toStartOf="parent"
  94. app:layout_constraintTop_toTopOf="parent"
  95. app:overlay="false"
  96. app:srcCompat="@drawable/ic_review_open" />
  97.  
  98. <com.google.android.material.textview.MaterialTextView
  99. android:id="@+id/yourReviewMaterialTextView"
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_gravity="center_vertical"
  103. android:layout_marginStart="16dp"
  104. android:layout_marginTop="8dp"
  105. android:text="@string/compilation_reviews_fragment_review_title"
  106. android:textColor="@color/accent"
  107. app:layout_constraintBottom_toBottomOf="@+id/openCloseImageView"
  108. app:layout_constraintStart_toEndOf="@+id/openCloseImageView"
  109. app:layout_constraintTop_toTopOf="parent" />
  110.  
  111. <com.google.android.material.textfield.TextInputLayout
  112. android:id="@+id/reviewTextInputLayout"
  113. style="@style/Widget.MaterialComponents.TextInputLayout.FilledBox"
  114. android:layout_width="0dp"
  115. android:layout_height="106dp"
  116. android:layout_marginStart="16dp"
  117. android:layout_marginTop="16dp"
  118. android:layout_marginEnd="16dp"
  119. android:layout_marginBottom="16dp"
  120. app:layout_constraintBottom_toBottomOf="parent"
  121. app:layout_constraintEnd_toStartOf="@+id/deleteImageButton"
  122. app:layout_constraintStart_toStartOf="parent"
  123. app:layout_constraintTop_toBottomOf="@+id/yourReviewMaterialTextView">
  124.  
  125. <com.google.android.material.textfield.TextInputEditText
  126. android:id="@+id/reviewTextInputEditText"
  127. android:layout_width="match_parent"
  128. android:layout_height="match_parent"
  129. android:background="@color/background_review_edit_text"
  130. android:hint="@string/compilation_reviews_fragment_review_hint"
  131. android:inputType="textMultiLine|textLongMessage|textCapSentences|textAutoCorrect" />
  132.  
  133. </com.google.android.material.textfield.TextInputLayout>
  134.  
  135. <ImageButton
  136. android:id="@+id/sendImageButton"
  137. android:layout_width="wrap_content"
  138. android:layout_height="wrap_content"
  139. android:layout_marginEnd="16dp"
  140. android:background="?attr/selectableItemBackgroundBorderless"
  141. android:contentDescription="@null"
  142. android:src="@drawable/ic_review_send"
  143. android:tint="@color/sel_button_reviews"
  144. app:layout_constraintEnd_toEndOf="parent"
  145. app:layout_constraintTop_toTopOf="@+id/reviewTextInputLayout" />
  146.  
  147. <ProgressBar
  148. android:id="@+id/reviewSendProgressIndicator"
  149. android:layout_width="24dp"
  150. android:layout_height="24dp"
  151. android:layout_marginEnd="16dp"
  152. android:background="?attr/selectableItemBackgroundBorderless"
  153. android:contentDescription="@null"
  154. android:src="@drawable/ic_review_send"
  155. android:visibility="invisible"
  156. app:layout_constraintEnd_toEndOf="parent"
  157. app:layout_constraintTop_toTopOf="@+id/reviewTextInputLayout" />
  158.  
  159. <ImageButton
  160. android:id="@+id/deleteImageButton"
  161. android:layout_width="wrap_content"
  162. android:layout_height="wrap_content"
  163. android:layout_marginEnd="16dp"
  164. android:background="?attr/selectableItemBackgroundBorderless"
  165. android:contentDescription="@null"
  166. android:src="@drawable/ic_review_delete"
  167. android:tint="@color/sel_button_reviews"
  168. app:layout_constraintBottom_toBottomOf="@+id/reviewTextInputLayout"
  169. app:layout_constraintEnd_toEndOf="parent" />
  170.  
  171. <ProgressBar
  172. android:id="@+id/reviewDeleteProgressIndicator"
  173. android:layout_width="24dp"
  174. android:layout_height="24dp"
  175. android:layout_marginEnd="16dp"
  176. android:background="?attr/selectableItemBackgroundBorderless"
  177. android:contentDescription="@null"
  178. android:src="@drawable/ic_review_send"
  179. android:visibility="invisible"
  180. app:layout_constraintBottom_toBottomOf="@+id/reviewTextInputLayout"
  181. app:layout_constraintEnd_toEndOf="parent" />
  182.  
  183. <androidx.constraintlayout.widget.Group
  184. android:id="@+id/reviewGroup"
  185. android:layout_width="wrap_content"
  186. android:layout_height="wrap_content"
  187. app:constraint_referenced_ids="reviewTextInputLayout,sendImageButton,deleteImageButton" />
  188.  
  189. <com.google.android.material.textview.MaterialTextView
  190. android:id="@+id/notPurchasedMaterialTextView"
  191. android:layout_width="0dp"
  192. android:layout_height="wrap_content"
  193. android:layout_marginStart="24dp"
  194. android:layout_marginTop="32dp"
  195. android:layout_marginEnd="24dp"
  196. android:layout_marginBottom="64dp"
  197. android:gravity="center"
  198. android:text="@string/compilation_reviews_fragment_review_not_purchased"
  199. android:visibility="gone"
  200. app:layout_constraintBottom_toBottomOf="parent"
  201. app:layout_constraintEnd_toEndOf="parent"
  202. app:layout_constraintStart_toStartOf="parent"
  203. app:layout_constraintTop_toBottomOf="@id/yourReviewMaterialTextView" />
  204.  
  205. </androidx.constraintlayout.widget.ConstraintLayout>
  206.  
  207. <include
  208. android:id="@+id/progressIndicator"
  209. layout="@layout/particle_loading_indicator_over_background"
  210. android:layout_width="match_parent"
  211. android:layout_height="match_parent"
  212. android:visibility="gone" />
  213. </androidx.coordinatorlayout.widget.CoordinatorLayout>
Add Comment
Please, Sign In to add comment