<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/rootView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/black">

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/bottomLay">

        <ja.burhanrashid52.photoeditor.PhotoEditorView
            android:id="@+id/photoEditorView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true" />
    </RelativeLayout>

    <RelativeLayout
        android:id="@+id/bottomLay"
        android:layout_width="match_parent"
        android:layout_height="50dp"
        android:layout_alignParentBottom="true"
        android:background="#ffffff">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:gravity="center"
            android:orientation="horizontal">

            <ImageView
                android:id="@+id/lineColorView"
                android:layout_width="24dp"
                android:layout_height="24dp"
                android:layout_marginLeft="10dp"
                android:layout_marginRight="10dp"
                android:src="@drawable/line_color_2" />

            <ImageView
                android:id="@+id/textColorView"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_marginLeft="10dp"
                android:layout_marginRight="10dp"
                android:src="@drawable/text_unselected" />
        </LinearLayout>

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="50dp"
            android:layout_alignParentBottom="true"
            android:layout_alignParentRight="true"
            android:background="#ffffff"
            android:gravity="right|center"
            android:orientation="horizontal">

            <ImageView
                android:id="@+id/color1"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_marginRight="10dp"
                android:background="#000000" />

            <ImageView
                android:id="@+id/color2"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_marginRight="10dp"
                android:background="#f73e3c" />

            <ImageView
                android:id="@+id/color3"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_marginRight="10dp"
                android:background="#ffff00" />

            <ImageView
                android:id="@+id/color4"
                android:layout_width="20dp"
                android:layout_height="20dp"
                android:layout_marginRight="10dp"
                android:background="#2ce15e" />

            <TextView
                android:id="@+id/imgUndo"
                android:layout_width="50dp"
                android:layout_height="wrap_content"
                android:padding="8dp"
                android:text="撤销"
                android:textColor="#666666"
                android:textSize="14dp" />

            <TextView
                android:id="@+id/imgSave"
                android:layout_width="50dp"
                android:layout_height="wrap_content"
                android:padding="8dp"
                android:text="完成"
                android:textColor="#666666"
                android:textSize="14dp" />
        </LinearLayout>
    </RelativeLayout>

</RelativeLayout>