源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Android DigitalClock组件用法实例

  • 时间:2020-06-28 15:19 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Android DigitalClock组件用法实例
本文实例讲述了Android DigitalClock组件用法。分享给大家供大家参考,具体如下: DigitalClock组件的使用很简单,先看看效果图: [img]http://files.jb51.net/file_images/article/201601/2016123114513716.jpg?2016023114524[/img] 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开发相关内容感兴趣的读者可查看本站专题:《[url=http://www.1sucai.cn/Special/381.htm]Android基本组件用法总结[/url]》及《[url=http://www.1sucai.cn/Special/410.htm]Android开发入门与进阶教程[/url]》 希望本文所述对大家Android程序设计有所帮助。
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部