<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
<!--  Title -->
    <LinearLayout
        android:id="@+id/title_block"
        android:layout_alignParentTop="true"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:padding="2dp"
        style="@style/GroupAndEntryHeader">
        <Button
            android:id="@+id/entry_title"
            style="@style/GroupAndEntryHeader"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="left|center_vertical"
            android:layout_weight="1"
            android:textIsSelectable="false"
            android:editable="false"
            android:longClickable="false"
            android:clickable="true"
            android:minHeight="32dp"
            android:gravity="left|center_vertical"
            android:drawableLeft="@drawable/navigation_previous_item_dark"
            android:background="@drawable/HeaderButtonBackground" />
        <ImageView
            android:id="@+id/entry_icon"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="right|center_vertical"
            android:scaleType="fitXY"
            android:src="@drawable/ic99_blank" />
    </LinearLayout>
    <LinearLayout
        android:id="@+id/bottom_bar"
        android:layout_alignParentBottom="true"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:padding="2dp"
        style="@style/GroupAndEntryHeader">
        <Button
            android:id="@+id/entry_edit"
            android:text="@string/menu_edit"
            android:layout_width="fill_parent"
            android:drawableLeft="@android:drawable/ic_menu_edit"
            android:background="@drawable/GreenButton"
            android:layout_height="wrap_content"
            android:layout_alignParentLeft="true"
            android:layout_alignParentBottom="true" />
    </LinearLayout>
    <ImageView
        android:id="@+id/entry_divider2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/bottom_bar"
        android:scaleType="fitXY"
        android:src="@android:drawable/divider_horizontal_dark" />
    <ScrollView
        android:id="@+id/entry_scroll"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_above="@id/entry_divider2"
        android:layout_below="@id/title_block"
        android:fillViewport="true"
        android:scrollbarStyle="insideOverlay">
        <keepass2android.view.EntryContentsView
            android:id="@+id/entry_contents"
            android:layout_height="wrap_content"
            android:layout_width="fill_parent" />
    </ScrollView>
</RelativeLayout>