--------------------------------------------------------------------
Java code
<?xml version= "1.0" encoding= "Utf-8"?>
<linearlayout xmlns:android= "Http://schemas.android.com/apk/res/android"
android:orientation= "vertical" android:layout_width= "fill_parent"
android:layout_height= "Fill_parent" android:background= "@drawable/background_login" >
<!--
padding inner margin layout_margin outer margin android:layout_alignparenttop
Whether the position of the layout is at the top
-
<relativelayout android:id= "@+id/login_div"
Android:layout_width= "Fill_parent" android:layout_height= "Wrap_content"
android:padding= "15dip" android:layout_margin= "15dip"
android:background= "@drawable/BACKGROUND_LOGIN_DIV_BG" >
<!--account--
<textview android:id= "@+id/login_user_input"
Android:layout_width= "Wrap_content" android:layout_height= "Wrap_content"
Android:layout_alignparenttop= "true" android:layout_margintop= "5DP"
android:text= "@string/login_label_username" style= "@style/normaltext"/>
<edittext android:id= "@+id/username_edit"
Android:layout_width= "Fill_parent" android:layout_height= "Wrap_content"
android:hint= "@string/login_username_hint" android:layout_below= "@id/login_user_input"
Android:singleline= "true" android:inputtype= "text"/>
<!--password text--
<textview android:id= "@+id/login_password_input"
Android:layout_width= "Wrap_content" android:layout_height= "Wrap_content"
android:layout_below= "@id/username_edit" android:layout_margintop= "3DP"
android:text= "@string/login_label_password" style= "@style/normaltext"/>
<edittext android:id= "@+id/password_edit"
Android:layout_width= "Fill_parent" android:layout_height= "Wrap_content"
android:layout_below= "@id/login_password_input" android:password= "true"
Android:singleline= "true" android:inputtype= "Textpassword"/>
<!--login button--
<button android:id= "@+id/loginbutton" android:layout_width= "Wrap_content"
android:layout_height= "Wrap_content" android:layout_below= "@id/password_edit"
android:layout_alignright= "@id/password_edit" android:text= "@string/login_label_signin"
android:background= "@drawable/blue_button"/>
</RelativeLayout>
<relativelayout android:layout_width= "Fill_parent"
android:layout_height= "Wrap_content" >
<textview android:id= "@+id/register_link" android:text= "@string/login_register_link"
Android:layout_width= "Wrap_content" android:layout_height= "Wrap_content"
android:layout_marginleft= "15DP" android:textcolor= "#888"
android:textcolorlink= "#FF0066CC"/>
<imageview android:id= "@+id/minitwitter_logo" android:src= "@drawable/cat"
Android:layout_width= "Wrap_content" android:layout_height= "Wrap_content"
Android:layout_alignparentright= "true"
Android:layout_alignparentbottom= "true" android:layout_marginright= "25DP"
android:layout_marginleft= "10DP" android:layout_marginbottom= "25DP"/>
<imageview android:src= "@drawable/logo"
Android:layout_width= "Wrap_content" android:layout_height= "Wrap_content"
android:layout_toleftof= "@id/minitwitter_logo"
android:layout_alignbottom= "@id/minitwitter_logo"
android:paddingbottom= "8DP"/>
</RelativeLayout>
</LinearLayout>
Minitwitter remember passwords and other functions implemented