<?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">
    <TextView
        android:id="@+id/filename_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/pass_filename" />
    <ImageView
        android:id="@+id/divider1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/filename_label"
        android:scaleType="fitXY"
        android:src="@android:drawable/divider_horizontal_dark" />
    <HorizontalScrollView
        android:id="@+id/filenamescroll"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/divider1">
        <TextView
            android:id="@+id/filename"
            style="@style/GroupText"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:singleLine="true"
            android:ellipsize="none"
            android:focusable="true"
            android:focusableInTouchMode="true" />
    </HorizontalScrollView>
    <ImageView
        android:id="@+id/divider2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/filenamescroll"
        android:scaleType="fitXY"
        android:src="@android:drawable/divider_horizontal_dark" />
    <TextView
        android:id="@+id/password_label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/divider2"
        android:text="@string/entry_and_or" />
    <ImageButton
        android:id="@+id/toggle_password"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_menu_view"
        android:layout_below="@id/password_label"
        android:layout_alignParentRight="true" />
    <EditText
        android:id="@+id/password"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/password_label"
        android:singleLine="true"
        android:inputType="textPassword"
        android:layout_toLeftOf="@id/toggle_password"
        android:hint="@string/hint_login_pass" />
    <ImageButton
        android:id="@+id/browse_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:src="@drawable/ic_launcher_folder_small"
        android:layout_below="@id/password"
        android:layout_alignParentRight="true" />
    <EditText
        android:id="@+id/pass_keyfile"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:layout_below="@id/password"
        android:layout_toLeftOf="@id/browse_button"
        android:singleLine="true"
        android:hint="@string/entry_keyfile" />
    <Button
        android:id="@+id/pass_ok"
        android:text="@android:string/ok"
        android:layout_width="100sp"
        android:layout_height="wrap_content"
        android:layout_below="@id/pass_keyfile"
        android:background="@drawable/GreenButton" />
    <CheckBox
        android:id="@+id/default_database"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/pass_ok"
        android:text="@string/default_checkbox" />
    <CheckBox
        android:id="@+id/enable_quickunlock"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/default_database"
        android:text="@string/enable_quickunlock" />
</RelativeLayout>