activity_main2.xml 1.1 KB
Newer Older
门心叼龙's avatar
门心叼龙 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    xmlns:android="http://schemas.android.com/apk/res/android">
    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="同步的Get请求"
        android:onClick="login"
        />
    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="异步的Post请求"
        android:onClick="addUser"
        />
门心叼龙's avatar
门心叼龙 已提交
18 19 20 21 22 23 24 25 26 27 28 29
    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="异步的Post请求"
        android:onClick="login1"
        />
    <Button
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="异步的Post请求"
        android:onClick="addUser1"
        />
门心叼龙's avatar
门心叼龙 已提交
30 31 32 33 34
    <TextView
        android:id="@+id/txt_content"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"/>
</LinearLayout>