Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.52 KB | None | 0 0
  1. <layout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto">
  3.  
  4. <data>
  5.  
  6. <import type="androidx.databinding.ObservableField" />
  7.  
  8. <variable
  9. name="textreadvideo"
  10. type="androidx.databinding.ObservableField&lt;String&gt;" />
  11. </data>
  12.  
  13. <RelativeLayout
  14. android:id="@+id/root"
  15. android:layout_width="match_parent"
  16. android:layout_height="match_parent"
  17. android:background="#FF444444"
  18. android:keepScreenOn="true">
  19.  
  20. <TextView
  21. android:id="@+id/textviewanchorstext"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_marginStart="20dp"
  25. android:layout_marginTop="20dp"
  26. android:layout_marginEnd="20dp"
  27. android:gravity="center"
  28. android:text="@{textreadvideo}"
  29. android:textColor="@color/White"
  30. android:textSize="20sp" />
  31.  
  32. <!--</LinearLayout>-->
  33.  
  34. <View
  35. android:id="@+id/separador"
  36. android:layout_width="match_parent"
  37. android:layout_height="3dp"
  38. android:layout_below="@id/textviewanchorstext"
  39. android:background="@color/White" />
  40.  
  41. <!-- Camera -->
  42. <com.otaliastudios.cameraview.CameraView
  43. android:id="@+id/camera"
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:layout_below="@id/separador"
  47. android:layout_gravity="center"
  48. android:keepScreenOn="true"
  49. app:cameraAudio="on"
  50. app:cameraCropOutput="false"
  51. app:cameraFacing="back"
  52. app:cameraFlash="off"
  53. app:cameraGestureLongTap="none"
  54. app:cameraGesturePinch="zoom"
  55. app:cameraGestureScrollHorizontal="exposureCorrection"
  56. app:cameraGestureScrollVertical="none"
  57. app:cameraGestureTap="focusWithMarker"
  58. app:cameraGrid="off"
  59. app:cameraJpegQuality="100"
  60. app:cameraPlaySounds="true"
  61. app:cameraSessionType="picture" />
  62.  
  63. <RelativeLayout
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content">
  66.  
  67. <com.google.android.material.floatingactionbutton.FloatingActionButton
  68. android:id="@+id/ayudaFoto"
  69. android:layout_width="wrap_content"
  70. android:layout_height="wrap_content"
  71. android:layout_alignParentEnd="true"
  72. android:layout_gravity="end"
  73. android:layout_margin="16dp"
  74. android:src="@drawable/ic_help_white"
  75. app:backgroundTint="@color/colorFABAyuda"
  76. app:fabSize="mini" />
  77.  
  78. </RelativeLayout>
  79. <!-- Controls -->
  80. <RelativeLayout
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:layout_alignParentBottom="true"
  84. android:padding="16dp">
  85.  
  86. <com.google.android.material.floatingactionbutton.FloatingActionButton
  87. android:id="@+id/capturePhoto"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:layout_alignParentBottom="true"
  91. android:layout_centerHorizontal="true"
  92. android:background="@drawable/border_round_login"
  93. android:elevation="12dp"
  94. android:visibility="gone"
  95. app:backgroundTint="@color/colorFABAceptar"
  96. app:fabSize="normal"
  97. app:srcCompat="@drawable/ic_user_photo_white_24dp" />
  98.  
  99. <com.google.android.material.floatingactionbutton.FloatingActionButton
  100. android:id="@+id/stopVideo"
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:layout_alignParentBottom="true"
  104. android:layout_centerHorizontal="true"
  105. android:background="@drawable/border_round_login"
  106. android:gravity="start"
  107. android:visibility="gone"
  108. app:backgroundTint="@color/colorFABCancelar"
  109. app:fabSize="normal"
  110. app:srcCompat="@drawable/ic_stop_white_24dp" />
  111.  
  112. <com.google.android.material.floatingactionbutton.FloatingActionButton
  113. android:id="@+id/captureVideo"
  114. android:layout_width="wrap_content"
  115. android:layout_height="wrap_content"
  116. android:layout_alignParentBottom="true"
  117. android:layout_centerHorizontal="true"
  118. android:layout_marginTop="10dp"
  119. android:background="@drawable/border_round_login"
  120. android:gravity="start"
  121. android:visibility="gone"
  122. app:backgroundTint="@color/colorFABAceptar"
  123. app:fabSize="normal"
  124. app:srcCompat="@drawable/ic_video_white_24dp" />
  125.  
  126. <com.google.android.material.floatingactionbutton.FloatingActionButton
  127. android:id="@+id/fab_cancelar_camara"
  128. android:layout_width="wrap_content"
  129. android:layout_height="wrap_content"
  130. android:layout_alignParentStart="true"
  131. android:layout_alignParentBottom="true"
  132. android:layout_gravity="center"
  133. android:layout_marginLeft="5dp"
  134. android:layout_marginTop="10dp"
  135. android:layout_marginRight="5dp"
  136. android:gravity="start"
  137. android:src="@drawable/ic_close_white_24dp"
  138. app:backgroundTint="@color/colorFABCancelar"
  139. app:fabSize="normal" />
  140.  
  141. <LinearLayout
  142. android:layout_width="wrap_content"
  143. android:layout_height="wrap_content"
  144. android:layout_alignParentRight="true"
  145. android:layout_alignParentBottom="true"
  146. android:orientation="vertical">
  147.  
  148. <com.google.android.material.floatingactionbutton.FloatingActionButton
  149. android:id="@+id/fab_flash"
  150. android:layout_width="wrap_content"
  151. android:layout_height="wrap_content"
  152. android:layout_above="@+id/toggleCamera"
  153. android:layout_gravity="center"
  154. android:layout_marginBottom="10dp"
  155. android:gravity="center"
  156. android:src="@drawable/ic_flash_on_white_24dp"
  157. android:visibility="gone"
  158. app:backgroundTint="@color/colorAccent"
  159. app:fabSize="mini" />
  160.  
  161. <com.google.android.material.floatingactionbutton.FloatingActionButton
  162. android:id="@+id/toggleCamera"
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:layout_alignParentBottom="true"
  166. android:background="@drawable/border_round_login"
  167. android:gravity="center"
  168. android:visibility="gone"
  169. app:fabSize="normal"
  170. app:srcCompat="@drawable/ic_switch_camera" />
  171.  
  172. </LinearLayout>
  173.  
  174. </RelativeLayout>
  175.  
  176. </RelativeLayout>
  177.  
  178. </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement