使用x5cloud云平台来做网络彩讯-------------登录界面(二)
main.xml
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:background="@drawable/share_background" android:layout_width="fill_parent" android:layout_height="fill_parent" > <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/hello" /> <include layout="@layout/title_layout"></include> </LinearLayout>
title_layout.xml
<?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="wrap_content"> <TextView style="@style/TitleStyle" android:text="账号:" android:layout_marginLeft="12dip" android:layout_marginRight="12dip"/> <EditText android:layout_height="wrap_content" android:id="@+id/account" android:layout_width="match_parent" android:layout_marginLeft="12dip" android:layout_marginRight="12dip"> <requestFocus></requestFocus> </EditText> <TextView style="@style/TitleStyle" android:text="密码:" android:layout_marginLeft="12dip" android:layout_marginRight="12dip"/> <EditText android:layout_height="wrap_content" android:id="@+id/password" android:inputType="textPassword" android:layout_width="match_parent" android:layout_marginLeft="12dip" android:layout_marginRight="12dip"/> <Button style="@style/ButtonStyle" android:id="@+id/login" android:background="@drawable/blue_button_background" android:layout_height="wrap_content" android:text="登陆" android:layout_gravity="right" android:layout_width="108dp" android:layout_marginRight="12dip"/> <LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout1" android:layout_width="match_parent" android:weightSum="1" android:layout_margin="12dip"> <TextView style="@style/TitleStyle" android:text=" 没有彩讯账号?" android:layout_weight="1.01" android:layout_height="wrap_content" android:id="@+id/textView3" android:layout_width="wrap_content" android:layout_gravity="top"/> <Button style="@style/ButtonStyle" android:id="@+id/register" android:background="@drawable/blue_button_background" android:layout_gravity="right" android:layout_height="wrap_content" android:text="注册" android:layout_width="107dp"/> </LinearLayout> </LinearLayout>
blue_button_background.xml
<?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_focused="true" android:state_pressed="true" android:drawable="@drawable/btn_blue_pressed"> </item> <item android:state_focused="false" android:state_pressed="true" android:drawable="@drawable/btn_blue_pressed"> </item> <item android:state_focused="true" android:drawable="@drawable/btn_blue_selected"> </item> <item android:state_focused="false" android:state_pressed="false" android:drawable="@drawable/btn_blue_normal"> </item> </selector>
相关推荐
huha 2020-10-16
xfcyhades 2020-11-20
sgafdsg 2020-11-04
Michael 2020-11-03
fengyeezju 2020-10-14
ziyexiaoxiao 2020-10-14
业余架构师 2020-10-09
OuNuo0 2020-09-29
moses 2020-09-22
Angelia 2020-09-11
qinxu 2020-09-10
刘炳昭 2020-09-10
Nostalgiachild 2020-09-07
Nostalgiachild 2020-08-17
leavesC 2020-08-14
一青年 2020-08-13
AndroidAiStudy 2020-08-07
ydc0 2020-07-30
绿豆饼 2020-07-28