| <?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"> | 
|   | 
|     <TextView | 
|         android:id="@+id/textView1" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="wrap_content" | 
|         android:gravity="center" | 
|         android:text="res sdk" /> | 
|   | 
|     <Button | 
|             android:id="@+id/button" | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:text="登录" | 
|             android:onClick="login"/> | 
|   | 
|     <Button | 
|             android:id="@+id/changAccount" | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:onClick="changAccount" | 
|             android:text="切换账号"/> | 
|   | 
|     <Button | 
|             android:id="@+id/payBtn" | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:text="支付" | 
|             android:onClick="pay"/> | 
|   | 
|     <Button | 
|             android:id="@+id/userinfo" | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:text="用户中心" | 
|             android:layout_gravity="center_horizontal" | 
|             android:onClick="userinfo" | 
|             android:visibility="visible"/> | 
|   | 
|     <Button | 
|         android:id="@+id/bindphone" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="wrap_content" | 
|         android:onClick="bindphone" | 
|         android:text="绑定手机" /> | 
|   | 
|     <Button | 
|             android:layout_width="match_parent" | 
|             android:layout_height="wrap_content" | 
|             android:text="退出" | 
|             android:onClick="logout"/> | 
|   | 
|     <TextView | 
|             android:id="@+id/txt" | 
|             android:layout_width="fill_parent" | 
|             android:layout_height="wrap_content" | 
|             android:text="欢迎使用" | 
|             /> | 
|   | 
|     <EditText | 
|         android:id="@+id/ed_amount" | 
|         android:layout_width="match_parent" | 
|         android:layout_height="wrap_content" | 
|         android:hint="金额" | 
|         android:ems="10" > | 
|   | 
|         <requestFocus /> | 
|     </EditText> | 
|   | 
|   | 
| </LinearLayout> |