首页 > 系统 > Android > 正文

Android AnalogClock简单使用方法实例

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

本文实例讲述了Android AnalogClock简单使用方法。分享给大家供大家参考,具体如下:

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

Android AnalogClock简单使用方法实例

AnalogClock组件的使用只需要在布局中指定的显示位置写入此组件即可使用,不需要在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"  >  <AnalogClock   android:layout_width="wrap_content"   android:layout_height="wrap_content"   android:layout_gravity="center_horizontal"/></LinearLayout>

 

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



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