zoukankan      html  css  js  c++  java
  • Android中的DigitalClock和AnalogClock

    先来看看效果图吧:

    main.xml代码如下:

     1 <?xml version="1.0" encoding="utf-8"?>
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3     android:layout_width="fill_parent"
     4     android:layout_height="fill_parent"
     5     android:orientation="vertical" >
     6 
     7     <TextView
     8         android:layout_width="fill_parent"
     9         android:layout_height="wrap_content"
    10         android:text="@string/hello" />
    11 
    12     <DigitalClock
    13         android:id="@+id/digitalClock1"
    14         android:layout_width="wrap_content"
    15         android:layout_height="wrap_content"
    16         android:text="DigitalClock" 
    17         android:textSize="14px"/>
    18 
    19     <AnalogClock
    20         android:id="@+id/analogClock1"
    21         android:layout_width="wrap_content"
    22         android:layout_height="wrap_content" />
    23 
    24 </LinearLayout>
  • 相关阅读:
    C# Linq to XML
    C# StopWatch
    C# 深拷贝代码
    基础练习 完美的代价
    基础练习 矩形面积交
    基础练习 矩阵乘法 时间限制:1.0s 内存限制:512.0MB
    阶乘计算 高精度
    杨辉三角形 递归与非递归
    数的分解 时间限制:1000 ms | 内存限制:65535 KB 难度:1
    数列排序 sort qsort
  • 原文地址:https://www.cnblogs.com/rollenholt/p/2506033.html
Copyright © 2011-2022 走看看