<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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">

    <RelativeLayout
        android:id="@+id/rl_camera"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentTop="true">

        <androidx.camera.view.PreviewView
            android:id="@+id/preview"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

        <androidx.appcompat.widget.AppCompatImageView
            android:id="@+id/image"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_centerInParent="true"
            android:scaleType="matrix" />
    </RelativeLayout>

    <SeekBar
        android:id="@+id/seekbar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/ll_tool"
        android:layout_marginStart="52dp"
        android:layout_marginTop="26dp"
        android:layout_marginEnd="52dp"
        android:layout_marginBottom="24dp"
        android:max="10"
        android:maxHeight="5dp"
        android:progressDrawable="@drawable/seekbar_progress"
        android:thumb="@drawable/seekbar_thumb" />

    <RelativeLayout
        android:id="@+id/ll_tool"
        android:layout_width="match_parent"
        android:layout_height="66dp"
        android:layout_alignParentBottom="true"
        android:layout_marginStart="16dp"
        android:layout_marginEnd="16dp"
        android:layout_marginBottom="50dp"
        android:gravity="center_vertical">
    <FrameLayout
        android:background="@drawable/rounded_corners_camera"
        android:layout_marginStart="70dp"
        android:layout_alignParentLeft="true"
        android:layout_width="70dp"
        android:layout_height="70dp"
        tools:ignore="RtlHardcoded">
        <ImageView
            android:layout_gravity="center"
            android:id="@+id/im_flash"
            android:layout_width="44dp"
            android:layout_height="44dp"
            android:padding="10dp"
            android:src="@drawable/selector_flash"
            tools:ignore="ContentDescription" />
    </FrameLayout>
        <FrameLayout
            android:background="@drawable/rounded_corners_camera"
            android:layout_alignParentRight="true"
            android:layout_marginEnd="70dp"
            android:layout_width="70dp"
            android:layout_height="70dp"
            tools:ignore="RtlHardcoded">
            <ImageView
                android:layout_gravity="center"
                android:id="@+id/im_photo"
                android:layout_width="44dp"
                android:layout_height="44dp"
                android:layout_weight="1"
                android:padding="10dp"
                android:src="@drawable/icon_photo"
                tools:ignore="ObsoleteLayoutParam" />
        </FrameLayout>

    </RelativeLayout>
    <FrameLayout
        android:layout_marginStart="40dp"
        android:layout_marginTop="56dp"
        android:background="@drawable/rounded_corners_camera"
        android:layout_alignParentLeft="true"
        android:layout_marginEnd="70dp"
        android:layout_width="44dp"
        android:layout_height="44dp"
        tools:ignore="RtlHardcoded">
        <ImageView
            android:id="@+id/back"
            android:layout_gravity="center"
            android:layout_width="24dp"
            android:layout_height="24dp"
            android:src="@drawable/arrow_left_white"
            tools:ignore="ContentDescription" />
    </FrameLayout>
</RelativeLayout>