<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:layout_centerVertical="true"
    android:background="#00F1F1F1"
    tools:context=".CanvasActivity">

    <LinearLayout
        android:layout_width="414dp"
        android:layout_height="732dp"
        android:gravity="bottom|center|center_vertical|fill_vertical"
        android:orientation="vertical"
        android:paddingTop="10dp"
        android:paddingBottom="10dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="20dp"
            android:orientation="horizontal">

            <ImageButton
                android:id="@+id/ibBack"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                android:padding="5dp"
                android:src="@drawable/back"
                tools:srcCompat="@drawable/back" />

            <ImageButton
                android:id="@+id/ibClear"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                android:padding="5dp"
                android:src="@drawable/clear"
                tools:srcCompat="@drawable/clear" />

            <ImageButton
                android:id="@+id/ibUndo"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                android:src="@drawable/undo"
                tools:srcCompat="@drawable/undo" />

            <ImageButton
                android:id="@+id/ibRedo"
                style="@style/Widget.AppCompat.ImageButton"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                app:srcCompat="@drawable/redo" />

            <ImageButton
                android:id="@+id/ibShare"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                app:srcCompat="@drawable/share" />

        </LinearLayout>

        <FrameLayout
            android:layout_width="match_parent"
            android:layout_height="555dp"
            android:layout_gravity="center_horizontal|center_vertical">

                <com.example.paintingphotos.CanvasView
                    android:id="@+id/signature_canvas"
                    android:layout_width="408dp"
                    android:layout_height="511dp"
                    android:layout_gravity="center|center_horizontal|center_vertical"
                    android:maxHeight="530dp"
                    android:textColor="#FFFFFF" />

        </FrameLayout>

        <TextView
            android:id="@+id/tvBrushSelected"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="left"
            android:paddingLeft="10dp"
            android:text="TEST" />

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:gravity="bottom|end"
            android:orientation="horizontal">

            <ImageButton
                android:id="@+id/ibBrushes"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                android:src="@drawable/brushes"
                tools:srcCompat="@drawable/brushes" />

            <ImageButton
                android:id="@+id/ibStroke"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                android:src="@drawable/stroke"
                tools:srcCompat="@drawable/stroke" />

            <ImageView
                android:id="@+id/ivCurrentColor"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1" />

            <ImageButton
                android:id="@+id/ibEyeDropper"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                app:srcCompat="@drawable/eyedropper" />

            <ImageButton
                android:id="@+id/ibColorPalette"
                android:layout_width="wrap_content"
                android:layout_height="60dp"
                android:layout_weight="1"
                app:srcCompat="@drawable/colors" />

        </LinearLayout>

    </LinearLayout>

</androidx.constraintlayout.widget.ConstraintLayout>