<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/context-auto"
    android:fitsSystemWindows="true"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="?activityBackgroundColor">
    <LinearLayout
        android:id="@+id/top"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:orientation="horizontal" />
    <RelativeLayout
        android:id="@+id/bottom_bar"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_alignParentBottom="true"
        android:baselineAligned="false">
        <Button
            android:id="@+id/insert_element"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:text="@string/insert_element_here"
            style="@style/BottomBarButton" />
        <Button
            android:id="@+id/cancel_insert_element"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:text="@string/cancel"
            style="@style/BottomBarButton" />
    </RelativeLayout>
    <View
        android:id="@+id/divider2"
        android:layout_width="fill_parent"
        android:layout_height="1dp"
        android:layout_above="@id/bottom_bar"
        android:background="#b8b8b8" />
    <android.support.design.widget.CoordinatorLayout
        android:id="@+id/main_content"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@id/divider2"
        android:layout_below="@id/top"
        android:fitsSystemWindows="true">
        <fragment
            android:name="keepass2android.GroupListFragment"
            android:id="@+id/list_fragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />
        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fabCancelAddNew"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_margin="16dp"
            android:layout_gravity="end|bottom|right"
            android:visibility="gone"
            android:src="@drawable/ic_cross" />
        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fabAddNew"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|bottom|right"
            android:layout_margin="16dp"
            android:src="@drawable/ic_plus" />
        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fabAddNewGroup"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|bottom|right"
            android:src="@drawable/ic_fab_folder"
            android:layout_marginRight="16dp"
            android:layout_marginBottom="88dp"
            android:visibility="gone"/>
        <android.support.design.widget.FloatingActionButton
            android:id="@+id/fabAddNewEntry"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="end|bottom|right"
            android:src="@drawable/ic_fab_entry"
            android:layout_marginRight="16dp"
            android:layout_marginBottom="160dp"
            android:visibility="gone"/>
    </android.support.design.widget.CoordinatorLayout>
</RelativeLayout>