主页 > 编程资料 > Android >
发布时间:2016-01-27 作者:网络 阅读:315次

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

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>


关键字词: