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
因为是别人原创的,我就不贴代码了,直接放上链接,有兴趣的朋友可以去看看,
我贴上我的布局代码给大家参考一下
<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
相关文章推荐
- 给聊天记录加上日志
- viewpager和fragment实现预加载和fragment的单一加载
- 【SSH进阶之路】Hibernate映射——一对一单向关联映射(五)
- Zoho People-公式让人事工作更简单
- 对Ansible二次开发来检查服务器的Java程序占用端口数量
- 网络请求库Volley详解
- 百度地图开发问题随手记
- datagrid 删除要选择的项
- android TextView图文混排
- 生成随机密码 可生成微信密钥key
- QT中的PRI文件
- 数据采集-关于密码使用js脚本进行rsa方式加密的解决方法
- MySQL的左连接、右连接和全连接的实现
- Java中Object转化为int类型
- 常用工具网址
- 第三方微信授权登录的iOS代码分析
- 【IIS】Windows下利用IIS建立网站并实现局域网共享
- ORACLE基本操作
- redis - 空格引起的bug
- 苹果手机DNS怎么设置