Android QQ登录界面

布局loginpage.xml:

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:orientation="vertical" android:id="@+id/loginRoot"
android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:id="@+id/LinearLayout01"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_weight="1.0"
android:background="@drawable/default_bg">
<RelativeLayout android:id="@+id/RelativeLayout02"
android:background="@drawable/login_back" android:paddingTop="21.0px"
android:paddingBottom="10.0px" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_marginLeft="15.0px"
android:layout_marginTop="62.0px" android:layout_marginRight="15.0px">
<ImageView android:id="@+id/faceImg" android:background="@drawable/login_head"
android:layout_width="wrap_content" android:layout_height="wrap_content" />
<EditText android:id="@+id/login_edit_account"
android:background="@drawable/qq_edit_login" android:paddingLeft="45.0sp"
android:saveEnabled="true" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_marginLeft="5.0dip"
android:layout_marginTop="5.0dip" android:layout_marginRight="5.0dip"
android:layout_marginBottom="5.0px" android:hint="@string/strInputAccHint"
android:maxLength="10" android:layout_toRightOf="@+id/faceImg"
android:layout_alignParentTop="true" android:inputType="number" />
<TextView android:textSize="16.0dip" android:textColor="#ff3f3f3f"
android:gravity="center_vertical" android:id="@+id/TextView01"
android:paddingLeft="7.0sp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginRight="15.0sp"
android:text="@string/strAccInputLabel" android:layout_alignLeft="@+id/login_edit_account"
android:layout_alignTop="@+id/login_edit_account"
android:layout_alignBottom="@+id/login_edit_account" />
<ImageButton android:id="@+id/ImageButton02"
android:background="@drawable/more_select" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginRight="1.0dip"
android:layout_alignTop="@+id/login_edit_account"
android:layout_alignRight="@+id/login_edit_account"
android:layout_alignBottom="@+id/login_edit_account" />
<EditText android:id="@+id/login_edit_pwd"
android:background="@drawable/qq_edit_login" android:paddingLeft="45.0sp"
android:saveEnabled="true" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_marginRight="1.0dip"
android:maxLength="16" android:layout_below="@+id/login_edit_account"
android:layout_alignLeft="@+id/login_edit_account"
android:layout_alignRight="@+id/login_edit_account"
android:inputType="textPassword" />
<TextView android:textSize="16.0dip" android:textColor="#ff3f3f3f"
android:gravity="center_vertical" android:id="@+id/TextView02"
android:paddingLeft="7.0sp" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:text="@string/strPswInputLabel"
android:layout_alignTop="@+id/login_edit_pwd"
android:layout_alignRight="@+id/TextView01"
android:layout_alignBottom="@+id/login_edit_pwd" />
<CheckBox android:textSize="16.0sp" android:textColor="#ff222222"
android:id="@+id/login_cb_savepwd" android:paddingLeft="25.0px"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:checked="true" android:button="@drawable/qq_btn_check"
android:text="@string/opt_remember" android:layout_alignBaseline="@+id/login_btn_login" />
<Button android:id="@+id/login_btn_login" android:layout_width="130.0px"
android:layout_height="42.0px" android:layout_marginTop="7.0px"
android:layout_marginRight="12.0dip" android:text="@string/login"
android:layout_below="@+id/TextView02"
android:layout_alignParentRight="true" />
</RelativeLayout>
<TableLayout android:id="@+id/TableLayout01"
android:layout_width="fill_parent" android:layout_height="wrap_content"
android:layout_marginLeft="20.0px" android:layout_marginRight="20.0px"
android:stretchColumns="1">
<TableRow>
<CheckBox android:textColor="#7fffffff" android:id="@+id/login_cb_visible"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/opt_hideLogin" style="@style/MyCheckBox" />
<CheckBox android:textColor="#7fffffff"
android:layout_gravity="right" android:id="@+id/login_cb_openvibra"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/opt_openVibra" style="@style/MyCheckBox" />
</TableRow>
<TableRow>
<CheckBox android:textColor="#7fffffff" android:id="@+id/login_cb_receivegroupmsg"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/opt_acceptGroupMsg" style="@style/MyCheckBox" />
<CheckBox android:textColor="#7fffffff"
android:layout_gravity="right" android:id="@+id/login_cb_quite"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:text="@string/opt_silent" style="@style/MyCheckBox" />
</TableRow>
</TableLayout>
</LinearLayout>
<RelativeLayout android:id="@+id/RelativeLayout01"
android:background="@drawable/bottom" android:layout_width="fill_parent"
android:layout_height="44.0dip">
<ImageButton android:id="@+id/login_option"
android:background="@drawable/option" android:clickable="true"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="13.0dip" android:layout_marginTop="2.0dip"
android:layout_centerVertical="true" />
</RelativeLayout>
</LinearLayout>


strings.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hello">Hello World, Date!</string>
<string name="app_name">丸子-Widget</string>
<string name="strInputAccHint">输入帐号</string>
<string name="strAccInputLabel">帐号</string>
<string name="strPswInputLabel">密码</string>
<string name="opt_remember">记住密码</string>
<string name="login">登 录</string>
<string name="opt_hideLogin">隐身登录</string>
<string name="opt_silent">静音登录</string>
<string name="opt_openVibra">开启振动</string>
<string name="opt_acceptGroupMsg">接收群消息</string>
</resources>


styles.xml:

<?xml version="1.0" encoding="UTF-8"?>
<resources>
<style name="MyCheckBox" parent="@android:style/Widget.CompoundButton.CheckBox">
<item name="android:textSize">16.0sp</item>
<item name="android:textColor">@color/qq_checkbox_text_color</item>
<item name="android:paddingLeft">28.0px</item>
<item name="android:button">@drawable/qq_btn_check</item>
</style>
</resources>


运行结果:
[img]http://dl.iteye.com/upload/attachment/502718/e0a2a517-790f-33f6-bba7-6b02f4498bbf.jpg[/img]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值