Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <layout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto">
- <data>
- <import type="androidx.databinding.ObservableField" />
- <variable
- name="textreadvideo"
- type="androidx.databinding.ObservableField<String>" />
- </data>
- <RelativeLayout
- android:id="@+id/root"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#FF444444"
- android:keepScreenOn="true">
- <TextView
- android:id="@+id/textviewanchorstext"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginStart="20dp"
- android:layout_marginTop="20dp"
- android:layout_marginEnd="20dp"
- android:gravity="center"
- android:text="@{textreadvideo}"
- android:textColor="@color/White"
- android:textSize="20sp" />
- <!--</LinearLayout>-->
- <View
- android:id="@+id/separador"
- android:layout_width="match_parent"
- android:layout_height="3dp"
- android:layout_below="@id/textviewanchorstext"
- android:background="@color/White" />
- <!-- Camera -->
- <com.otaliastudios.cameraview.CameraView
- android:id="@+id/camera"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_below="@id/separador"
- android:layout_gravity="center"
- android:keepScreenOn="true"
- app:cameraAudio="on"
- app:cameraCropOutput="false"
- app:cameraFacing="back"
- app:cameraFlash="off"
- app:cameraGestureLongTap="none"
- app:cameraGesturePinch="zoom"
- app:cameraGestureScrollHorizontal="exposureCorrection"
- app:cameraGestureScrollVertical="none"
- app:cameraGestureTap="focusWithMarker"
- app:cameraGrid="off"
- app:cameraJpegQuality="100"
- app:cameraPlaySounds="true"
- app:cameraSessionType="picture" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/ayudaFoto"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentEnd="true"
- android:layout_gravity="end"
- android:layout_margin="16dp"
- android:src="@drawable/ic_help_white"
- app:backgroundTint="@color/colorFABAyuda"
- app:fabSize="mini" />
- </RelativeLayout>
- <!-- Controls -->
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:padding="16dp">
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/capturePhoto"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:background="@drawable/border_round_login"
- android:elevation="12dp"
- android:visibility="gone"
- app:backgroundTint="@color/colorFABAceptar"
- app:fabSize="normal"
- app:srcCompat="@drawable/ic_user_photo_white_24dp" />
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/stopVideo"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:background="@drawable/border_round_login"
- android:gravity="start"
- android:visibility="gone"
- app:backgroundTint="@color/colorFABCancelar"
- app:fabSize="normal"
- app:srcCompat="@drawable/ic_stop_white_24dp" />
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/captureVideo"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="10dp"
- android:background="@drawable/border_round_login"
- android:gravity="start"
- android:visibility="gone"
- app:backgroundTint="@color/colorFABAceptar"
- app:fabSize="normal"
- app:srcCompat="@drawable/ic_video_white_24dp" />
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/fab_cancelar_camara"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentStart="true"
- android:layout_alignParentBottom="true"
- android:layout_gravity="center"
- android:layout_marginLeft="5dp"
- android:layout_marginTop="10dp"
- android:layout_marginRight="5dp"
- android:gravity="start"
- android:src="@drawable/ic_close_white_24dp"
- app:backgroundTint="@color/colorFABCancelar"
- app:fabSize="normal" />
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_alignParentBottom="true"
- android:orientation="vertical">
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/fab_flash"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_above="@+id/toggleCamera"
- android:layout_gravity="center"
- android:layout_marginBottom="10dp"
- android:gravity="center"
- android:src="@drawable/ic_flash_on_white_24dp"
- android:visibility="gone"
- app:backgroundTint="@color/colorAccent"
- app:fabSize="mini" />
- <com.google.android.material.floatingactionbutton.FloatingActionButton
- android:id="@+id/toggleCamera"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:background="@drawable/border_round_login"
- android:gravity="center"
- android:visibility="gone"
- app:fabSize="normal"
- app:srcCompat="@drawable/ic_switch_camera" />
- </LinearLayout>
- </RelativeLayout>
- </RelativeLayout>
- </layout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement