Skip to content

Instantly share code, notes, and snippets.

@dallarosa
Created May 16, 2011 03:13
Show Gist options
  • Save dallarosa/973867 to your computer and use it in GitHub Desktop.
Save dallarosa/973867 to your computer and use it in GitHub Desktop.
login layout
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TextView
android:text="@string/userid"
android:id="@+id/useridtext"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>
<EditText
android:text="xxx"
android:layout_height="wrap_content"
android:id="@+id/useridinput"
android:layout_width="fill_parent"/>
<TextView
android:text="@string/passid"
android:id="@+id/passtext"
android:layout_height="wrap_content"
android:layout_width="wrap_content"/>
<EditText
android:text="xxx"
android:id="@+id/passinput"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:password="true" />
<Button
android:id="@+id/loginbutton"
android:text="@string/login"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:textSize="8pt"
android:background="@drawable/button"
android:textColor="#fff"/>
<TextView
android:id="@+id/wrongpasstext"
android:layout_below="@id/loginbutton"
android:text="@string/wrongpass"
android:gravity="center_horizontal"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:visibility="invisible" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment