<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:background="@drawable/loginbg"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<RelativeLayout
android:id="@+id/header"
android:layout_marginTop="50dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:gravity="center" >
<LinearLayout
android:id="@+id/headerlogo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical" >
<ImageView
android:layout_width="wrap_content"
android:layout_height="60dp"
android:layout_gravity="center"
android:src="@drawable/logo_login" />
</LinearLayout>
<LinearLayout
android:id="@+id/headertext"
android:layout_marginTop="10dp"
android:layout_below="@id/headerlogo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="vertical" >
<TextView
android:layout_weight="0.5"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:fontFamily="sans-light"
android:text="@string/app_name_long"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="20sp"
android:textColor="@color/ui_white" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:layout_weight="0.5"
android:fontFamily="sans-light"
android:text="@string/app_name_long_2"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textSize="20sp"
android:textColor="@color/ui_white" />
</LinearLayout>
</RelativeLayout>
<!-- Header aligned to top
<include layout="@layout/header" />
Footer aligned to bottom -
<include layout="@layout/footer" />
Content below header and above footer -->
<RelativeLayout
android:id="@+id/footer"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:gravity="center" >
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textColor="@color/ui_white"
android:padding="10dp"
android:text="@string/address" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/content"
android:layout_above="@id/footer"
android:layout_below="@id/header"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center" >
<LinearLayout
android:id="@+id/headerlogo"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientation="vertical" >
<EditText
android:id="@+id/editTextUsername"
android:fontFamily="sans-light"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/relativeLayout1"
android:layout_centerHorizontal="true"
android:background="#5fffffff"
android:clickable="false"
android:drawableLeft="@drawable/login"
android:drawablePadding="15dp"
android:ems="10"
android:inputType="textPersonName"
android:paddingBottom="8dp"
android:paddingLeft="14dp"
android:paddingTop="8dp"
android:hint="@string/username"
android:textColorHint="@color/ui_white"
android:textColor="@color/ui_white"
android:textScaleX="1.001"
android:textSize="23sp" />
<EditText
android:fontFamily="sans-light"
android:id="@+id/editTextPassword"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_marginTop="26dp"
android:background="#5fffffff"
android:clickable="false"
android:drawableLeft="@drawable/password"
android:drawablePadding="15dp"
android:ems="10"
android:inputType="textPassword"
android:paddingBottom="8dp"
android:paddingLeft="14dp"
android:paddingTop="8dp"
android:hint="@string/password"
android:textColorHint="@color/ui_white"
android:textScaleX="1.001"
android:textSize="23dp" />
<Button
android:id="@+id/buttonLogin"
android:layout_width="300dp"
android:layout_height="40dp"
android:layout_marginTop="57dp"
android:background="@drawable/custom_button"
android:text="LOGIN"
android:textColor="@color/ui_white" />
</LinearLayout>
</RelativeLayout>
</RelativeLayout>
</RelativeLayout>