<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical">

    <include layout="@layout/photopicker_toolbar"/>

    <GridView
        android:id="@+id/grid"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:clipToPadding="false"
        android:columnWidth="@dimen/size_120"
        android:horizontalSpacing="@dimen/size_2"
        android:paddingBottom="?android:attr/actionBarSize"
        android:verticalSpacing="@dimen/size_2"/>

    <RelativeLayout
        android:id="@+id/photo_picker_footer"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="@color/app_skin_black"
        android:minHeight="?android:attr/actionBarSize">

        <Button
            android:id="@+id/btnAlbum"
            style="@style/Widget.AppCompat.ActionButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_centerVertical="true"
            android:background="@null"
            android:drawableRight="@drawable/text_indicator"
            android:gravity="center"
            android:text="@string/all_image"
            android:textColor="@color/action_text_color"
            android:textSize="@dimen/text_14"/>

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

            <CheckBox
                android:id="@+id/original_cb"
                style="@style/CustomOriginalCheckBoxTheme"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginLeft="9dp"
                android:text="@string/original_image"
                android:textColor="@color/action_text_color"
                android:textSize="@dimen/text_16"/>

        </LinearLayout>

        <Button
            android:id="@+id/btnPreview"
            style="@style/Widget.AppCompat.ActionButton"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_centerVertical="true"
            android:background="@null"
            android:enabled="false"
            android:gravity="center"
            android:text="@string/preview"
            android:textColor="@color/action_text_color"
            android:textSize="@dimen/text_16"/>

    </RelativeLayout>

</LinearLayout>