Skip to content

Instantly share code, notes, and snippets.

@ishmaelmakitla
Created May 9, 2016 22:32
Show Gist options
  • Save ishmaelmakitla/2c9d87daef9c2a1c2734dca1931aa94b to your computer and use it in GitHub Desktop.
Save ishmaelmakitla/2c9d87daef9c2a1c2734dca1931aa94b to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/loginContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/imageContainer"
android:layout_width="match_parent"
android:layout_height="0dp"
android:gravity="center"
android:orientation="vertical"
android:layout_weight="0.35">
<ImageView
android:id="@+id/loginImage"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/logo2"
android:layout_gravity="center"/>
</LinearLayout>
<LinearLayout
android:id="@+id/loginFormContainer"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="0.65"
android:orientation="vertical"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
>
<LinearLayout
android:id="@+id/textRegFieldsContainter"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="10dp"
android:background="@drawable/text_view"
>
<EditText
android:id="@+id/user_name"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/text_view"
android:hint="@string/username_hint"
android:layout_weight="0.5"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:layout_marginBottom="5dp"
android:singleLine="true"
android:maxLines="1" />
<EditText
android:id="@+id/pass_word"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@drawable/text_view"
android:hint="@string/password_hint"
android:layout_weight="0.5"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:singleLine="true"
android:maxLines="1"
android:password="true" />
<CheckBox
android:id="@+id/chRememberMe"
android:checked="true"
android:text="Remember Me"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
<Button
android:id="@+id/loginBtn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/login_button_text"
android:textColor="@color/White"
android:layout_marginTop="10dp" />
<LinearLayout
android:id="@+id/forgotContainer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<Button
android:id="@+id/forgotPassword"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_weight="0.2"
android:text="@string/forgot_button_text"
android:textColor="@color/White" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment