摘要:
一、流程 1.自定义Handler,重写handleMessage(Message msg),用msg得到bundle,从而得到传递过来的数据 2.开启android.os.HandlerThread,获取looper,据此为参数new一个自定义的Handler 3.以new出来的自定义的Handl 阅读全文
posted @ 2016-02-13 21:35
shamgod
阅读(192)
评论(0)
推荐(0)
摘要:
一、流程 1.点击按钮,则代码会使handler把updateThread压到队列里去,从而执行updateThread的run() 2.run()里会通过msg.arg1 = i 和bundle来写参,通过执行updateBarHandler.sendMessage(msg)把消息压入消息队列,会 阅读全文
posted @ 2016-02-13 18:36
shamgod
阅读(213)
评论(0)
推荐(0)
摘要:
一、运行结果 一、代码1.xml(1)activity_main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.androi 阅读全文
posted @ 2016-02-13 18:10
shamgod
阅读(257)
评论(0)
推荐(0)
摘要:
一、代码1.xml(1)main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:ori 阅读全文
posted @ 2016-02-13 16:59
shamgod
阅读(211)
评论(0)
推荐(0)
摘要:
一、代码 1.xml(1)main.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:or 阅读全文
posted @ 2016-02-13 16:57
shamgod
阅读(172)
评论(0)
推荐(0)
摘要:
一、代码 1.xml(1)radio.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:o 阅读全文
posted @ 2016-02-13 15:49
shamgod
阅读(204)
评论(0)
推荐(0)
摘要:
1.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="fill_ 阅读全文
posted @ 2016-02-13 14:26
shamgod
阅读(175)
评论(0)
推荐(0)
摘要:
1.AndroidManifest.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 3 package="mars. 阅读全文
posted @ 2016-02-13 13:43
shamgod
阅读(153)
评论(0)
推荐(0)
摘要:
一、代码 1.xml(1)activity_main.xml 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/ 阅读全文
posted @ 2016-02-13 11:54
shamgod
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号