Xml Codes:
------------
<?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:layout_gravity="center|center_vertical"
android:background="@drawable/myimg"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="200dp"
android:layout_marginBottom="80dp"
android:layout_marginLeft="90dp"
android:layout_marginRight="10dp"
android:layout_marginTop="100dp"
android:layout_weight="0.11"
android:background="@drawable/img1"
android:orientation="vertical" >
<TextView
android:id="@+id/tvUserName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:text="UserName"
android:textColor="#FF0000"
android:textStyle="bold" />
<EditText
android:id="@+id/edtUserName"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#FFFFFF" />
<TextView
android:id="@+id/tvPassword"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Password"
android:textColor="#FF0000"
android:textStyle="bold" />
<EditText
android:id="@+id/edtPassword"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:password="true" />
<Button
android:id="@+id/btnLogin"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Login" />
<Button
android:id="@+id/btnCancel"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Cancel" />
</LinearLayout>
</LinearLayout>
No comments:
Post a Comment