Skip to content

Instantly share code, notes, and snippets.

@1234
Created March 14, 2015 18:29
Show Gist options
  • Save 1234/6b4df42d510f52f268b9 to your computer and use it in GitHub Desktop.
Save 1234/6b4df42d510f52f268b9 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/main"
android:id="@+id/StdsignIn">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/imageView"
android:layout_gravity="center_horizontal"
android:background="@drawable/user"
android:layout_marginLeft="144dp"
android:layout_marginTop="46dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true" />
<EditText
android:layout_width="250dp"
android:layout_height="wrap_content"
android:id="@+id/userId"
android:hint=" User Id"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
<EditText
android:layout_width="250dp"
android:layout_height="wrap_content"
android:id="@+id/pw"
android:editable="true"
android:enabled="true"
android:password="true"
android:hint=" password"
android:layout_above="@+id/loginbtn"
android:layout_alignStart="@+id/userId"
android:layout_marginBottom="46dp" />
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Login"
android:id="@+id/loginbtn"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="48dp"
android:background="#3366FF"
android:enabled="true"
android:password="false"
android:textColor="#ffffffff"
android:textStyle="bold" />
</RelativeLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment