<?xml version="1.0" encoding="utf-8"?>
|
<android.support.constraint.ConstraintLayout
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
xmlns:tools="http://schemas.android.com/tools"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
android:background="@color/black"
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
tools:context=".module.common.CameraActivity">
|
|
<com.otaliastudios.cameraview.CameraView
|
android:id="@+id/camera_view"
|
android:layout_width="match_parent"
|
android:layout_height="match_parent"
|
app:cameraPictureSizeSmallest="false"
|
app:cameraPictureSizeBiggest="true"
|
app:cameraGestureTap="focus"
|
app:cameraGesturePinch="zoom"
|
app:cameraFacing="back"
|
app:cameraHdr="on"
|
app:cameraFlash="auto"
|
app:cameraWhiteBalance="auto"
|
app:cameraAudio="off"
|
app:cameraGrid="off"
|
app:cameraVideoCodec="deviceDefault">
|
|
</com.otaliastudios.cameraview.CameraView>
|
|
<TextView
|
android:id="@+id/txt_location"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="@string/app_name"
|
android:textColor="@color/white"
|
android:layout_marginStart="@dimen/dimen16"
|
android:layout_marginBottom="@dimen/dimen16"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintBottom_toTopOf="@id/btn_shot"/>
|
<Button
|
android:id="@+id/btn_shot"
|
android:layout_width="wrap_content"
|
android:layout_height="wrap_content"
|
android:text="SHOT"
|
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
android:layout_marginBottom="16dp"/>
|
</android.support.constraint.ConstraintLayout>
|