Skip to content

Commit

Permalink
Almost done with login_form xml. Still researching on how to implement
Browse files Browse the repository at this point in the history
better set of buttons.
  • Loading branch information
towhidabsar committed Mar 21, 2014
1 parent 3999bf0 commit 0d42076
Show file tree
Hide file tree
Showing 7 changed files with 67 additions and 20 deletions.
Binary file modified bg_button-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-hdpi/bg_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-mdpi/bg_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-xhdpi/bg_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified res/drawable-xxhdpi/bg_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion res/layout/login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
android:layout_above="@+id/button3"
android:layout_alignParentLeft="true"
android:layout_marginBottom="84dp"
android:background="@drawable/bg_button"
android:background="@color/green"
android:text="Login" />

<Button
Expand Down
85 changes: 66 additions & 19 deletions res/layout/login_form.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,73 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<Button
android:id="@+id/button_login2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="36dp"
android:background="@color/green"
android:text="Login" />


<TextView
android:id="@+id/text_login"
android:layout_width="wrap content"
android:layout_height="match_parent"
android:background="#00ffee" >

<EditText
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_marginRight="14dp"
android:layout_marginTop="95dp"
android:ems="10"
android:background="#eeeeee">

<requestFocus />
</EditText>

<EditText
android:id="@+id/editText2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/editText1"
android:layout_below="@+id/editText1"
android:layout_marginTop="34dp"
android:ems="10"
android:inputType="textPassword"
android:background="#eeeeee"/>

/>
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/editText2"
android:layout_alignLeft="@+id/textView1"
android:text="Password"
android:textAppearance="?android:attr/textAppearanceLarge" />

<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/editText1"
android:layout_alignBottom="@+id/editText1"
android:layout_alignParentLeft="true"
android:layout_marginLeft="21dp"
android:text="Username"
android:textAppearance="?android:attr/textAppearanceLarge" />

<Button
android:id="@+id/button_login2"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/textView2"
android:layout_alignParentBottom="true"
android:layout_marginBottom="140dp"
android:background="@color/green"
android:text="Login" />

<Button
android:id="@+id/back_button"
android:layout_width="120dp"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/button_login2"
android:layout_alignBottom="@+id/button_login2"
android:layout_alignRight="@+id/editText2"
android:layout_marginRight="15dp"
android:background="@color/green"
android:text="Back" />

</RelativeLayout>

0 comments on commit 0d42076

Please sign in to comment.