Advertisement
Guest User

fragment_create_post.xml

a guest
Jan 22nd, 2020
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.77 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView 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:background="@color/colorBackgroundDark"
  8. android:fillViewport="true">
  9.  
  10. <androidx.constraintlayout.widget.ConstraintLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content">
  13.  
  14. <ImageView
  15. android:id="@+id/create_post_image_view"
  16. android:layout_width="0dp"
  17. android:layout_height="280dp"
  18. android:scaleType="fitXY"
  19. android:visibility="gone"
  20. app:layout_constraintEnd_toEndOf="parent"
  21. app:layout_constraintStart_toStartOf="parent"
  22. app:layout_constraintTop_toBottomOf="@+id/manage_notification_toolbar"
  23. tools:visibility="gone" />
  24.  
  25. <ProgressBar
  26. android:id="@+id/create_photo_drama_post_progressbar"
  27. style="?android:attr/progressBarStyleLarge"
  28. android:layout_width="wrap_content"
  29. android:layout_height="wrap_content"
  30. android:visibility="gone"
  31. app:layout_constraintBottom_toBottomOf="@+id/create_post_image_view"
  32. app:layout_constraintEnd_toEndOf="@+id/create_post_image_view"
  33. app:layout_constraintStart_toStartOf="@+id/create_post_image_view"
  34. app:layout_constraintTop_toTopOf="@+id/create_post_image_view"
  35. tools:visibility="gone" />
  36.  
  37. <FrameLayout
  38. android:id="@+id/video_view_frame_layout"
  39. android:layout_width="0dp"
  40. android:layout_height="wrap_content"
  41. android:visibility="gone"
  42. app:layout_constraintEnd_toEndOf="parent"
  43. app:layout_constraintStart_toStartOf="parent"
  44. app:layout_constraintTop_toBottomOf="@+id/manage_notification_toolbar"
  45. tools:visibility="visible">
  46.  
  47. <VideoView
  48. android:id="@+id/create_post_video_view"
  49. android:layout_width="match_parent"
  50. android:layout_height="260dp" />
  51. </FrameLayout>
  52.  
  53. <ProgressBar
  54. android:id="@+id/create_video_post_progressbar"
  55. style="?android:attr/progressBarStyleLarge"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:visibility="gone"
  59. app:layout_constraintBottom_toBottomOf="@+id/video_view_frame_layout"
  60. app:layout_constraintEnd_toEndOf="@+id/video_view_frame_layout"
  61. app:layout_constraintStart_toStartOf="@+id/video_view_frame_layout"
  62. app:layout_constraintTop_toTopOf="@+id/video_view_frame_layout"
  63. tools:visibility="visible" />
  64.  
  65. <EditText
  66. android:id="@+id/create_post_edit_text"
  67. android:layout_width="0dp"
  68. android:layout_height="110dp"
  69. android:gravity="start|top"
  70. android:hint="Enter your text"
  71. android:textColor="@color/colorWhite"
  72. android:justificationMode="inter_word"
  73. android:textColorHint="@color/colorHint"
  74. android:textSize="@dimen/font_size_16sp"
  75. android:fontFamily="@font/poppins_regular"
  76. android:background="@drawable/border_stroke_rounder"
  77. android:layout_margin="@dimen/margin_or_padding_5dp"
  78. android:paddingTop="@dimen/margin_or_padding_5dp"
  79. android:paddingBottom="@dimen/margin_or_padding_5dp"
  80. android:paddingStart="@dimen/margin_or_padding_10dp"
  81. android:paddingEnd="@dimen/margin_or_padding_10dp"
  82. app:layout_constraintEnd_toEndOf="parent"
  83. app:layout_constraintStart_toStartOf="parent"
  84. app:layout_constraintTop_toBottomOf="@+id/create_post_barrier"
  85. tools:targetApi="o" />
  86.  
  87. <TextView
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_marginStart="@dimen/margin_or_padding_16dp"
  91. android:layout_marginBottom="@dimen/margin_or_padding_16dp"
  92. android:background="@drawable/border_radius_rounder_dark"
  93. android:fontFamily="@font/poppins_regular"
  94. android:paddingStart="@dimen/margin_or_padding_18dp"
  95. android:paddingTop="@dimen/margin_or_padding_5dp"
  96. android:paddingEnd="@dimen/margin_or_padding_18dp"
  97. android:paddingBottom="@dimen/margin_or_padding_5dp"
  98. android:text="@string/edit"
  99. android:textAlignment="center"
  100. android:textColor="@color/colorWhite"
  101. android:textSize="@dimen/font_size_14sp"
  102. app:layout_constraintBottom_toBottomOf="@+id/create_post_image_view"
  103. app:layout_constraintStart_toStartOf="parent" />
  104.  
  105. <TextView
  106. android:id="@+id/post_visibility_text_view"
  107. android:layout_width="0dp"
  108. android:layout_height="wrap_content"
  109. android:fontFamily="@font/poppins_regular"
  110. android:gravity="center_vertical"
  111. android:padding="@dimen/margin_or_padding_12dp"
  112. android:text="@string/post_visibility"
  113. android:textColor="@color/colorWhite"
  114. android:textSize="@dimen/font_size_14sp"
  115. app:layout_constraintEnd_toStartOf="@+id/post_visibility_option_text_view"
  116. app:layout_constraintStart_toStartOf="parent"
  117. app:layout_constraintTop_toBottomOf="@+id/create_post_edit_text" />
  118.  
  119. <TextView
  120. android:id="@+id/post_visibility_option_text_view"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:layout_marginEnd="@dimen/margin_or_padding_5dp"
  124. android:drawableEnd="@drawable/ic_arrow_drop_down"
  125. android:fontFamily="@font/poppins_bold"
  126. android:gravity="center"
  127. android:padding="@dimen/margin_or_padding_10dp"
  128. android:text="@string/friends"
  129. android:textColor="@color/colorWhite"
  130. android:textSize="@dimen/font_size_16sp"
  131. app:layout_constraintBottom_toBottomOf="@id/post_visibility_text_view"
  132. app:layout_constraintEnd_toEndOf="parent"
  133. app:layout_constraintTop_toTopOf="@+id/post_visibility_text_view" />
  134.  
  135. <!--post visibility start-->
  136. <TextView
  137. android:id="@+id/comment_on_off_text_view"
  138. android:layout_width="0dp"
  139. android:layout_height="wrap_content"
  140. android:fontFamily="@font/poppins_regular"
  141. android:gravity="center_vertical"
  142. android:paddingTop="@dimen/margin_or_padding_12dp"
  143. android:paddingBottom="@dimen/margin_or_padding_12dp"
  144. android:text="@string/comments"
  145. android:textColor="@color/colorWhite"
  146. android:textSize="@dimen/font_size_14sp"
  147. app:layout_constraintEnd_toStartOf="@+id/comment_on_off_switch_text_view"
  148. app:layout_constraintStart_toStartOf="@+id/post_visibility_divider_view"
  149. app:layout_constraintTop_toBottomOf="@+id/post_visibility_divider_view" />
  150.  
  151. <TextView
  152. android:id="@+id/share_location_on_off_text_view"
  153. android:layout_width="0dp"
  154. android:layout_height="wrap_content"
  155. android:fontFamily="@font/poppins_regular"
  156. android:gravity="center_vertical"
  157. android:paddingTop="@dimen/margin_or_padding_12dp"
  158. android:paddingBottom="@dimen/margin_or_padding_12dp"
  159. android:text="@string/share_location"
  160. android:textColor="@color/colorWhite"
  161. android:textSize="@dimen/font_size_14sp"
  162. app:layout_constraintEnd_toStartOf="@+id/comment_on_off_switch_text_view"
  163. app:layout_constraintStart_toStartOf="@+id/comment_on_off_divider_view"
  164. app:layout_constraintTop_toBottomOf="@+id/comment_on_off_divider_view" />
  165.  
  166. <TextView
  167. android:id="@+id/gender_visibility_text_view"
  168. android:layout_width="0dp"
  169. android:layout_height="wrap_content"
  170. android:fontFamily="@font/poppins_regular"
  171. android:gravity="center_vertical"
  172. android:paddingTop="@dimen/margin_or_padding_12dp"
  173. android:paddingBottom="@dimen/margin_or_padding_12dp"
  174. android:text="@string/gender"
  175. android:textColor="@color/colorWhite"
  176. android:textSize="@dimen/font_size_14sp"
  177. app:layout_constraintEnd_toStartOf="@+id/gender_visibility_option_text_view"
  178. app:layout_constraintStart_toStartOf="@+id/share_location_on_off_divider_view"
  179. app:layout_constraintTop_toBottomOf="@+id/share_location_on_off_divider_view" />
  180. <!--post visibility end-->
  181.  
  182. <!--comments enable start-->
  183. <TextView
  184. android:id="@+id/gender_visibility_option_text_view"
  185. android:layout_width="wrap_content"
  186. android:layout_height="wrap_content"
  187. android:layout_marginEnd="@dimen/margin_or_padding_5dp"
  188. android:drawableEnd="@drawable/ic_arrow_drop_down"
  189. android:fontFamily="@font/poppins_bold"
  190. android:gravity="center"
  191. android:padding="@dimen/margin_or_padding_10dp"
  192. android:text="@string/all"
  193. android:textColor="@color/colorWhite"
  194. android:textSize="@dimen/font_size_16sp"
  195. app:layout_constraintBottom_toBottomOf="@id/gender_visibility_text_view"
  196. app:layout_constraintEnd_toEndOf="parent"
  197. app:layout_constraintTop_toTopOf="@+id/gender_visibility_text_view" />
  198.  
  199. <View
  200. android:id="@+id/post_visibility_divider_view"
  201. android:layout_width="0dp"
  202. android:layout_height="1dp"
  203. android:layout_marginStart="@dimen/margin_or_padding_12dp"
  204. android:layout_marginEnd="@dimen/margin_or_padding_12dp"
  205. android:background="@color/colorWhiteTranslucent"
  206. app:layout_constraintEnd_toEndOf="@+id/post_visibility_option_text_view"
  207. app:layout_constraintStart_toStartOf="@+id/post_visibility_text_view"
  208. app:layout_constraintTop_toBottomOf="@+id/post_visibility_text_view" />
  209.  
  210. <View
  211. android:id="@+id/comment_on_off_divider_view"
  212. android:layout_width="0dp"
  213. android:layout_height="1dp"
  214. android:background="@color/colorWhiteTranslucent"
  215. app:layout_constraintEnd_toEndOf="@+id/comment_on_off_switch_text_view"
  216. app:layout_constraintStart_toStartOf="@+id/comment_on_off_text_view"
  217. app:layout_constraintTop_toBottomOf="@+id/comment_on_off_text_view" />
  218. <!--comments enable end-->
  219.  
  220. <!--share location enable start-->
  221. <View
  222. android:id="@+id/share_location_on_off_divider_view"
  223. android:layout_width="0dp"
  224. android:layout_height="1dp"
  225. android:background="@color/colorWhiteTranslucent"
  226. app:layout_constraintEnd_toEndOf="@+id/share_location_on_off_switch_text_view"
  227. app:layout_constraintStart_toStartOf="@+id/share_location_on_off_text_view"
  228. app:layout_constraintTop_toBottomOf="@+id/share_location_on_off_text_view" />
  229.  
  230. <androidx.appcompat.widget.SwitchCompat
  231. android:id="@+id/comment_on_off_switch_text_view"
  232. android:layout_width="wrap_content"
  233. android:layout_height="wrap_content"
  234. android:layout_marginEnd="@dimen/margin_or_padding_16dp"
  235. android:checked="true"
  236. android:padding="@dimen/margin_or_padding_10dp"
  237. android:textColor="@color/colorWhite"
  238. android:thumb="@drawable/item_switch_thumbs"
  239. app:layout_constraintBottom_toBottomOf="@+id/comment_on_off_text_view"
  240. app:layout_constraintEnd_toEndOf="parent"
  241. app:layout_constraintTop_toTopOf="@+id/comment_on_off_text_view"
  242. app:track="@drawable/item_switch_track" />
  243.  
  244. <androidx.appcompat.widget.SwitchCompat
  245. android:id="@+id/share_location_on_off_switch_text_view"
  246. android:layout_width="wrap_content"
  247. android:layout_height="wrap_content"
  248. android:layout_marginEnd="@dimen/margin_or_padding_16dp"
  249. android:checked="true"
  250. android:padding="@dimen/margin_or_padding_10dp"
  251. android:textColor="@color/colorWhite"
  252. android:thumb="@drawable/item_switch_thumbs"
  253. app:layout_constraintBottom_toBottomOf="@id/share_location_on_off_text_view"
  254. app:layout_constraintEnd_toEndOf="parent"
  255. app:layout_constraintTop_toTopOf="@+id/share_location_on_off_text_view"
  256. app:track="@drawable/item_switch_track" />
  257. <!--share location enable end-->
  258.  
  259. <!--gender visibility end-->
  260. <androidx.constraintlayout.widget.Barrier
  261. android:id="@+id/create_post_barrier"
  262. android:layout_width="match_parent"
  263. android:layout_height="wrap_content"
  264. app:barrierDirection="bottom"
  265. app:constraint_referenced_ids="create_post_image_view,video_view_frame_layout" />
  266.  
  267. <include
  268. android:id="@+id/manage_notification_toolbar"
  269. layout="@layout/item_toolbar_with_navigate_cell"
  270. app:layout_constraintEnd_toEndOf="parent"
  271. app:layout_constraintStart_toStartOf="parent"
  272. app:layout_constraintTop_toTopOf="parent" />
  273. <!--gender visibility end-->
  274.  
  275. </androidx.constraintlayout.widget.ConstraintLayout>
  276. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement