<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <FrameLayout
        android:id="@+id/camera_preview"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >
    </FrameLayout>

    <ImageView
        android:id="@+id/photoResized"
        android:layout_width="fill_parent"
        android:layout_height="match_parent" />

    <ImageView
        android:id="@+id/background"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" 
        android:alpha="0.2"
        android:scaleType="fitXY" />

    <ImageButton
        android:id="@+id/flash"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="60dp"
        android:background="@android:color/transparent"
        android:onClick="switchFlash"
        android:src="@drawable/flash" />

    <ImageButton
        android:id="@+id/switchCamera"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerVertical="false"
        android:layout_marginTop="150dp"
        android:src="@drawable/switch_camera"
        android:onClick="switchCamera" />

    <LinearLayout
        android:id="@+id/beforePhoto"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_alignParentLeft="true"
        android:layout_alignParentTop="true"
        android:gravity="bottom" >

        <Button
            android:id="@+id/miniature"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="0.2"
            android:onClick="buttonMiniature"
            android:text="@string/miniature" />
             
        <ImageButton
            android:id="@+id/capture"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/round_button"
            android:src="@drawable/capture" />

        <org.geneanet.customcamera.VerticalSeekBar
            android:id="@+id/switchOpacity"
            android:layout_width="wrap_content"
            android:layout_height="300dp"
            android:layout_gravity="center_vertical"
            android:layout_weight="0"
            android:alpha="0.6"
            android:max="10"
            android:maxHeight="13dp"
            android:minHeight="0dp"
            android:progress="5"
            android:progressDrawable="@drawable/custom_opacity_bar"
            android:secondaryProgress="10"
            android:thumb="@drawable/thumb"
            android:thumbOffset="-0.9px" />
    </LinearLayout>

    <FrameLayout
        android:id="@+id/afterPhoto"
        android:layout_width="match_parent"
        android:layout_height="match_parent" >

        <LinearLayout
            android:id="@+id/keepPhoto"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="bottom"
            android:alpha="0.8"
            android:background="@color/black"
            android:visibility="invisible" >

            <ImageButton
                android:id="@+id/accept"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:onClick="acceptPhoto"
                android:src="@drawable/accept"
                android:background="@android:color/transparent" />
            
            <ImageButton
                android:id="@+id/decline"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:onClick="declinePhoto"
                android:src="@drawable/delete"
                android:background="@android:color/transparent" />

        </LinearLayout>

    </FrameLayout>

    <SeekBar
        android:id="@+id/zoomLevel"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:visibility="visible" />

</RelativeLayout>
