您的位置:首页 > 其它

AsyncTask多线程

2016-01-08 17:19 127 查看
今天学习了一下多线程

因为是别人原创的,我就不贴代码了,直接放上链接,有兴趣的朋友可以去看看,

我贴上我的布局代码给大家参考一下

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

    xmlns:tools="http://schemas.android.com/tools"

    android:layout_width="match_parent"

    android:layout_height="match_parent"

    android:paddingBottom="@dimen/activity_vertical_margin"

    android:paddingLeft="@dimen/activity_horizontal_margin"

    android:paddingRight="@dimen/activity_horizontal_margin"

    android:paddingTop="@dimen/activity_vertical_margin"

    tools:context=".MainActivity" >

    <TextView

        android:id="@+id/textView1"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:text="@string/hello_world" />

    <ProgressBar

        android:id="@+id/progressBar1"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_below="@+id/textView1"

        android:layout_marginTop="134dp"

        android:layout_toRightOf="@+id/textView1" />

    <Button

        android:id="@+id/button1"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_alignRight="@+id/progressBar1"

        android:layout_below="@+id/progressBar1"

        android:layout_marginTop="80dp"

        android:onClick="onClick_Start"

        android:text="Button" />

    <Button

        android:id="@+id/button2"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_alignBottom="@+id/button1"

        android:layout_alignParentRight="true"

        android:layout_marginRight="49dp"

        android:onClick="onClick_Cancel"

        android:text="Button" />

</RelativeLayout>
http://blog.csdn.net/uaecho/article/details/9425735
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: