摘要:
示例demomain.xml布局代码: 1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 android:layout_width="match_parent" 3 android:layout_height="match_parent" 4 android:orientation="vertical" > 5 6 <Button 7 android:layout_width="wra 阅读全文
posted @ 2013-03-12 21:54
My_苦行僧
阅读(542)
评论(0)
推荐(0)
摘要:
在XML中空格符不是用HMTL中的表示,而是用表示。附XML中特殊字符的表示法列表:<!ENTITY nbsp CDATA " " -- no-breakspace --><!ENTITY iexcl CDATA "¡" -- inverted exclamation mark --><!ENTITY cent CDATA "¢" -- cent sign --><!ENTITY pound CDATA "£&q 阅读全文
posted @ 2013-03-12 20:47
My_苦行僧
阅读(7229)
评论(0)
推荐(0)
摘要:
布局代码: 1 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com/tools" 3 android:layout_width="match_parent" 4 android:layout_height="match_parent" > 5 6 <FrameLayout 7 android:layout_width= 阅读全文
posted @ 2013-03-12 17:15
My_苦行僧
阅读(24956)
评论(12)
推荐(3)
摘要:
java.util.Timer计时器有管理任务延迟执行("如1000ms后执行任务")以及周期性执行("如每500ms执行一次该任务")。 但是,Timer存在一些缺陷,因此你应该考虑使用ScheduledThreadPoolExecutor作为代替品,Timer对调度的支持是基于绝对时间,而不是相对时间的, 由此任务对系统时钟的改变是敏感的;ScheduledThreadExecutor只支持相对时间。 Timer的另一个问题在于,如果TimerTask抛出未检查的异常,Timer将会产生无法预料的行为。 Timer线程并不捕获异常,所以TimerTa 阅读全文
posted @ 2013-03-12 15:42
My_苦行僧
阅读(17454)
评论(2)
推荐(2)

浙公网安备 33010602011771号