首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 服务器 > 云计算 >

施用x5cloud云平台来做网络彩讯-登录界面(二)

2012-07-01 
使用x5cloud云平台来做网络彩讯-------------登录界面(二)main.xml??xml version1.0 encodingutf-8

使用x5cloud云平台来做网络彩讯-------------登录界面(二)

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

?

?

?

热点排行