首页 > 其他 > 详细

模拟时钟(AnalogClock)和数字时钟(DigitalClock)

时间:2015-07-23 21:19:19      阅读:207      评论:0      收藏:0      [点我收藏+]

 

技术分享

 

Demo2\clock_demo\src\main\res\layout\activity_main.xml

 1 <LinearLayout 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     tools:context=".MainActivity"
 6     android:orientation="vertical"
 7     android:gravity="center_horizontal">
 8 
 9     <!--自定义模拟时钟-->
10     <AnalogClock
11         android:layout_width="wrap_content"
12         android:layout_height="wrap_content" />
13     <!--自定义数字时钟-->
14     <DigitalClock
15         android:layout_width="wrap_content"
16         android:layout_height="wrap_content"
17         android:textSize="30sp"/>
18 
19 </LinearLayout>

 

模拟时钟(AnalogClock)和数字时钟(DigitalClock)

原文:http://www.cnblogs.com/LY1124/p/4671541.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!