<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:orientation="vertical"
              android:weightSum="1">

    <ImageView
            android:id="@+id/splashImage"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="0.7"
            android:scaleType="centerCrop"
            android:src="@drawable/header_image" />

    <RelativeLayout
            android:id="@+id/loginLayout"
            android:layout_weight="0.3"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:background="@drawable/bg_grayscale"
            android:orientation="vertical"
            android:visibility="visible" >

        <include
                android:id="@+id/include1"
                layout="@layout/footer" />

        <RelativeLayout
                android:id="@+id/relativeLayout2"
                android:layout_width="fill_parent"
                android:layout_height="wrap_content"
                android:layout_alignLeft="@+id/include1"
                android:padding="5dp" >

            <RelativeLayout
                    android:id="@+id/relativeLayout1"
                    android:layout_width="fill_parent"
                    android:layout_height="wrap_content"
                    android:layout_alignParentLeft="true"
                    android:layout_marginTop="20dp" >

                <TextView
                        android:id="@+id/textLoginPrompt"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_alignLeft="@+id/editPassword"
                        android:layout_alignParentTop="true"
                        android:layout_marginBottom="7dp"
                        android:gravity="center_horizontal"
                        android:text="@string/login_desc"
                        android:textColor="#001135" />

                <EditText
                        android:id="@+id/editPassword"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_below="@+id/editUserId"
                        android:layout_marginTop="7dp"
                        android:drawableLeft="@drawable/ms_lock_icon_black"
                        android:ems="10"
                        android:hint="@string/lblLoginPassword"
                        android:inputType="textPassword"
                        android:textColor="@color/tv_darker"
                        android:textColorHint="@color/tv_darker" />

                <EditText
                        android:id="@+id/editUserId"
                        android:layout_width="fill_parent"
                        android:layout_height="wrap_content"
                        android:layout_alignLeft="@+id/editPassword"
                        android:layout_below="@+id/textLoginPrompt"
                        android:drawableLeft="@drawable/ms_user_icon_black"
                        android:ems="10"
                        android:hint="@string/lblLoginId"
                        android:singleLine="true"
                        android:textColor="@color/tv_darker"
                        android:textColorHint="@color/tv_darker" >

                    <requestFocus />
                </EditText>
            </RelativeLayout>
        </RelativeLayout>

        <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignLeft="@+id/include1"
                android:layout_alignParentRight="true"
                android:layout_below="@+id/checkShowPassword"
                android:layout_marginTop="15dp"
                android:padding="5dp"
                android:weightSum="1" >

            <Button
                    android:id="@+id/buttonLogin"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:background="@drawable/button_background"
                android:textAppearance="?android:attr/textAppearanceSmall"
                    android:text="@string/btnLogin"
                    android:textColor="#ffffff"
                    android:visibility="visible" />

            <Button
                    android:id="@+id/buttonExit"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:visibility="gone"
                    android:background="@drawable/button_background"
                    android:text="@string/btnExit"
                    android:textColor="#ffffff"/>
        </LinearLayout>

        <CheckBox
                android:id="@+id/checkShowPassword"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_below="@+id/relativeLayout2"
                android:layout_marginLeft="@dimen/control_right_margin"
                android:text="@string/lblShowPassword"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textColor="@color/tv_darker"
                android:visibility="visible" />

        <CheckBox
                android:id="@+id/checkRememberMe"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignRight="@+id/include1"
                android:layout_below="@+id/relativeLayout2"
                android:layout_marginRight="@dimen/control_right_margin"
                android:paddingRight="5dp"
                android:text="@string/lblRememberMe"
                android:textAppearance="?android:attr/textAppearanceSmall"
                android:textColor="@color/tv_darker"
                android:visibility="visible" />
    </RelativeLayout>

</LinearLayout>