(19:56:08)
The code of a Common Logon interface is mainly three edittext, one checkbox, and two buttons.
<? 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"> <Textview Android: Id ="
@ + ID/login_user_num"Android: layout_width ="
Wrap_content"Android: layout_height ="
Wrap_content"Android: textsize ="
25px"Android: layout_marginleft ="
40px"Android: textstyle ="
Bold"Android: text ="
Mobile logistics mobile client"Android: textcolor ="
#000000"Style ="
@ Style/normaltext"/> <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"> <Textview Android: Id ="
@ + ID/login_user_num"Android: layout_width ="
Wrap_content"Android: layout_height ="
Wrap_content"Android: text ="
Employee ID"Style ="
@ Style/normaltext"/> <Edittext Android: Id ="
@ + ID/usernum_edit"Android: layout_width ="
Fill_parent"Android: layout_height ="
Wrap_content"Android: layout_below ="
@ ID/login_user_num"Android: hint ="
@ String/login_work_num_hint"Android: singleline ="
True"Android: inputtype ="
Text"/> <Textview Android: Id ="
@ + ID/login_user_input"Android: layout_width ="
Wrap_content"Android: layout_height ="
Wrap_content"Android: layout_below ="
@ ID/usernum_edit"Android: text ="
@ String/login_label_userid_num"Style ="
@ Style/normaltext"/> <Edittext Android: Id ="
@ + ID/username_edit"Android: layout_width ="
Fill_parent"Android: layout_height ="
Wrap_content"Android: hint ="
@ String/login_userid_num_hint"Android: layout_below ="
@ ID/login_user_input"Android: singleline ="
True"Android: inputtype ="
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"/> <Checkbox Android: Id ="
@ + ID/cbremember"Android: text ="
@ String/cbremember"Android: layout_gravity ="
Center_horizontal"Android: checked ="
False"Android: textcolor ="
@ Color/Character"Android: layout_width ="
Wrap_content"Android: layout_height ="
Wrap_content"Android: layout_below ="
@ ID/password_edit"/> <Button Android: Id ="
@ + ID/signin_button"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"/> </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"/> <Button Android: Id ="
@ + ID/register_button"Android: layout_torightof ="
@ ID/register_link"Android: layout_width ="
Wrap_content"Android: layout_height ="
Wrap_content"Android: layout_aligntop ="
@ ID/register_link"Android: text ="
Register"/> <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"/> </Relativelayout> </linearlayout> as follows: