Advertisement
kiev_north

uploadxml

Apr 22nd, 2020
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@color/colorWhite">
  6.  
  7. <SurfaceView
  8. android:id="@+id/surface_view_camera"
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:layout_gravity="center" />
  12.  
  13. <RelativeLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:gravity="center"
  17. android:orientation="vertical">
  18.  
  19. <!--include-->
  20. <FrameLayout
  21. xmlns:app="http://schemas.android.com/apk/res-auto"
  22. android:layout_width="match_parent"
  23. android:layout_height="match_parent"
  24. android:layout_gravity="center"
  25. android:orientation="vertical">
  26.  
  27. <alzaichsank.com.mnc_core_module.base.widget.FixedAspectRatioFrameLayout
  28. android:id="@+id/frame_surface"
  29. android:layout_width="match_parent"
  30. android:layout_height="match_parent"
  31. android:layout_marginBottom="5dp"
  32. app:aspectRatioHeight="9"
  33. app:aspectRatioWidth="16">
  34. <!--include-->
  35. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  36. xmlns:app="http://schemas.android.com/apk/res-auto"
  37. android:layout_width="match_parent"
  38. android:layout_centerInParent="true"
  39. android:layout_height="match_parent">
  40. <RelativeLayout
  41. android:id="@+id/section_record"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:clickable="true">
  45.  
  46. <androidx.constraintlayout.widget.ConstraintLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent"
  49. android:layout_centerInParent="true">
  50.  
  51. <ImageView
  52. android:id="@+id/image_record_videos"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. app:layout_constraintBottom_toBottomOf="parent"
  56. app:layout_constraintLeft_toLeftOf="parent"
  57. app:layout_constraintRight_toRightOf="parent"
  58. app:layout_constraintTop_toTopOf="parent" />
  59.  
  60. <TextView
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:layout_marginTop="12dp"
  64. android:fontFamily="metube_font_icon"
  65. android:text="Record"
  66. app:layout_constraintLeft_toLeftOf="parent"
  67. app:layout_constraintRight_toRightOf="parent"
  68. app:layout_constraintTop_toBottomOf="@+id/image_record_videos" />
  69.  
  70. </androidx.constraintlayout.widget.ConstraintLayout>
  71.  
  72. </RelativeLayout>
  73.  
  74. </RelativeLayout>
  75.  
  76. </alzaichsank.com.mnc_core_module.base.widget.FixedAspectRatioFrameLayout>
  77.  
  78. </FrameLayout>
  79.  
  80. <RelativeLayout
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:layout_below="@id/camera_layout"
  84. android:layout_alignParentBottom="true"
  85. android:background="@color/colorWhite">
  86.  
  87. <androidx.recyclerview.widget.RecyclerView
  88. android:id="@+id/rv_list_item_vertical_upload_video"
  89. android:layout_width="match_parent"
  90. android:layout_height="match_parent"
  91. android:orientation="vertical"
  92. android:scrollbars="vertical" />
  93.  
  94. <TextView
  95. android:id="@+id/tv_video_not_found"
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:layout_centerInParent="true"
  99. android:text="@string/no_video_available"
  100. android:textColor="@color/colorText"
  101. android:textSize="@dimen/medium_font_size"
  102. android:visibility="gone" />
  103.  
  104. <LinearLayout
  105. android:id="@+id/refresh_button"
  106. android:layout_width="match_parent"
  107. android:layout_height="wrap_content"
  108. android:layout_centerInParent="true"
  109. android:orientation="vertical"
  110. android:visibility="gone">
  111.  
  112. <TextView
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. android:gravity="center"
  116. android:text="Akses ke penyimpanan diperlukan"
  117. android:textColor="@color/md_black_1000" />
  118.  
  119. <androidx.appcompat.widget.AppCompatButton
  120. android:id="@+id/button_check_permission"
  121. android:layout_width="@dimen/_100sdp"
  122. android:layout_height="wrap_content"
  123. android:layout_gravity="center"
  124. android:layout_margin="@dimen/medium_large_margin"
  125. android:background="@drawable/bg_primary_button"
  126. android:fontFamily="@font/gs_medium"
  127. android:gravity="center"
  128. android:padding="@dimen/small_to_medium_margin"
  129. android:text="Izinikan"
  130. android:textAllCaps="true"
  131. android:textColor="@color/colorWhite"
  132. android:textSize="@dimen/small_font_size" />
  133. </LinearLayout>
  134.  
  135. <ProgressBar
  136. android:id="@+id/progress_bar_upload"
  137. android:layout_width="wrap_content"
  138. android:layout_height="wrap_content"
  139. android:layout_centerInParent="true" />
  140.  
  141. </RelativeLayout>
  142.  
  143. </RelativeLayout>
  144.  
  145. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement