zoukankan      html  css  js  c++  java
  • colock

    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                  android:orientation="vertical"
                  android:layout_width="match_parent"
                  android:layout_height="match_parent"
                  android:gravity="center_horizontal">
        <!-- 定义模拟时钟 -->
        <AnalogClock
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"/>
        <!-- 定义数字时钟 -->
        <TextClock
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:textSize="20dp"
                android:textColor="#f0f"
                android:format12Hour="yyyy年MM月dd日 H:mma EEEE"
                android:drawableEnd="@mipmap/ic_launcher" android:drawableRight="@mipmap/ic_launcher"/>
        <!-- 定义模拟时钟,并使用自定义表盘、时针图片 -->
        <AnalogClock
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:dial="@drawable/watch"
                android:hand_minute="@drawable/hand"/>
    </LinearLayout>
    View Code

    知识点:(划重点了)

    第三个表盘和分针是一个图片

    android:dial="@drawable/watch"
                android:hand_minute="@drawable/hand
  • 相关阅读:
    Yet Another Monster Killing Problem
    Element Extermination
    最短路径
    Secret Passwords
    New Year Parties
    Water The Garden
    Zero Quantity Maximization
    Anya and Cubes
    代码规范&《数学之美》读后感
    带负边权的最短路径(有向图)——Bellman-Ford算法
  • 原文地址:https://www.cnblogs.com/superxuezhazha/p/11477956.html
Copyright © 2011-2022 走看看