Minitwitter remember passwords and other functions implemented

Source: Internet
Author: User

--------------------------------------------------------------------
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.