title: How to create a login form in Android?
body: <p>I want to create a login form. But i am new in android so i am not able to do it properly. I have to put the logo of the company on it's header. After that the heading will be Like Login to you are account after that in a box the user name and password. So i am posting my xml please upadte it. Thanks...</p>
  
  <p>This is how i have to create it from this link please check this 
  <a href="http://s23.postimg.org/btie12dvv/Login_Page2.jpg" rel="nofollow">http://s23.postimg.org/btie12dvv/Login_Page2.jpg</a></p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:background="#5F04B4"
      android:orientation="vertical" &gt;
  
  
      &lt;LinearLayout
          android:id="@+id/linearLayout1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="15dp"
          android:orientation="horizontal" &gt;
  
          &lt;TextView
              android:layout_width="100dp"
              android:layout_height="wrap_content"
              android:gravity="center"
              android:text="User Name"
              android:textColor="#ffffff"
              android:textSize="13dp"
              android:textStyle="bold" /&gt;
  
          &lt;EditText
              android:id="@+id/edtUserName"
              android:layout_width="200dp"
              android:layout_height="wrap_content" &gt;
          &lt;/EditText&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:id="@+id/linearLayout1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:orientation="horizontal" &gt;
  
          &lt;TextView
              android:layout_width="100dp"
              android:layout_height="wrap_content"
              android:gravity="center"
              android:text="Password"
              android:textColor="#ffffff"
              android:textSize="13dp"
              android:textStyle="bold" /&gt;
  
          &lt;EditText
              android:id="@+id/edtPassword"
              android:layout_width="200dp"
              android:layout_height="wrap_content"
              android:password="true" /&gt;
      &lt;/LinearLayout&gt;
  
      &lt;LinearLayout
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_marginTop="10dp"
          android:orientation="horizontal" &gt;
  
          &lt;Button
              android:id="@+id/btnLogin"
              android:layout_width="200dp"
              android:layout_height="wrap_content"
              android:text="Login" /&gt;
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>