Android中的DigitalClock和AnalogClock
2012-05-17 13:00 Rollen Holt 阅读(621) 评论(0) 编辑 收藏 举报先来看看效果图吧:
main.xml代码如下:
1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="fill_parent" 4 android:layout_height="fill_parent" 5 android:orientation="vertical" > 6 7 <TextView 8 android:layout_width="fill_parent" 9 android:layout_height="wrap_content" 10 android:text="@string/hello" /> 11 12 <DigitalClock 13 android:id="@+id/digitalClock1" 14 android:layout_width="wrap_content" 15 android:layout_height="wrap_content" 16 android:text="DigitalClock" 17 android:textSize="14px"/> 18 19 <AnalogClock 20 android:id="@+id/analogClock1" 21 android:layout_width="wrap_content" 22 android:layout_height="wrap_content" /> 23 24 </LinearLayout>
==============================================================================
本博客已经废弃,不在维护。新博客地址:http://wenchao.ren
我喜欢程序员,他们单纯、固执、容易体会到成就感;面对压力,能够挑灯夜战不眠不休;面对困难,能够迎难而上挑战自我。他
们也会感到困惑与傍徨,但每个程序员的心中都有一个比尔盖茨或是乔布斯的梦想“用智慧开创属于自己的事业”。我想说的是,其
实我是一个程序员
==============================================================================