<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    android:background="@android:color/background_dark">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1">

        <com.otaliastudios.cameraview.CameraView
            android:id="@+id/camera"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:keepScreenOn="true" />

        <ProgressBar
            android:id="@+id/loadingBar"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:layout_gravity="center"
            android:visibility="gone" />
        
        <com.nimble.androidnative.customcamera.VerticalSeekBar
            android:id="@+id/vsb_controller"
            android:layout_width="30dp"
            android:layout_marginRight="12dp"
            android:layout_height="300dp"
            android:layout_centerVertical="true"
            android:layout_alignParentRight="true"
            android:max="100"
            android:indeterminate="false"
            style="@android:style/Widget.DeviceDefault.SeekBar"
            />

    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/homecamera_bottom_relative2"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:background="@android:color/background_dark">

        <ImageView
            android:id="@+id/iv_back2"
            android:layout_width="50dp"
            android:layout_height="45dp"
            android:padding="10dp"
            android:layout_centerVertical="true"
            android:layout_marginStart="10dp"
            android:layout_marginBottom="10dp"
            android:src="@drawable/icon_back"
            android:scaleType="fitXY" />

        <ImageView
            android:id="@+id/img_camera2"
            android:layout_width="80dp"
            android:layout_height="80dp"
            android:layout_centerInParent="true"
            android:layout_marginBottom="20dp"
            android:background="@drawable/ic_camera"
            android:scaleType="centerInside" />

    </RelativeLayout>
</LinearLayout>
