首页 > 系统 > Android > 正文

Android DigitalClock组件用法实例

2019-10-24 20:26:12
字体:
来源:转载
供稿:网友
这篇文章主要介绍了Android DigitalClock组件用法,结合实例形式分析了DigitalClock组件的布局调用技巧,非常简单实用,需要的朋友可以参考下
 

本文实例讲述了Android DigitalClock组件用法。分享给大家供大家参考,具体如下:

DigitalClock组件的使用很简单,先看看效果图:

Android DigitalClock组件用法实例

DigitalClock只需要在布局文件中,用于显示时间的地方使用此组件即可,无需用java代码进行实例化。

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  android:orientation="vertical"  android:layout_width="fill_parent"  android:layout_height="fill_parent"  > <DigitalClock   android:layout_width="wrap_content"   android:layout_height="wrap_content"   android:layout_gravity="center_horizontal"/></LinearLayout>

 

希望本文所述对大家Android程序设计有所帮助。



注:相关教程知识阅读请移步到Android开发频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表