<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                DigitalClock本身就繼承了TextView,也就是說他本身就是文本框,只是顯示的內容總是當前時間,DigitalClock設置的android:text屬性沒什么作用。 AnalogClock繼承的View組件,它重寫了View的OnDraw方法,會在View上繪制模擬時鐘。 ![](https://box.kancloud.cn/2016-03-10_56e0d9a9893c7.jpg) AnalogClock的新屬性: android:dial ? ? ? ? ? ? ? ? ? ? ? ? ?設置表盤使用的圖片 android:hand_hour ? ? ? ? ? ? ?設置時針使用的圖片 android:hand_minute ? ? ? ? ?設置的分針使用的圖片 例,通過圖片定制AnalogClock模擬指針的表盤,時針,分針,只要找到合適的圖片,就可以對AnalogClock進行定制 工程 ![](https://box.kancloud.cn/2016-03-10_56e0d9a99ea19.jpg) ~~~ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/root" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center_horizontal" android:orientation="vertical" > <!-- 模擬時鐘 --> <AnalogClock android:id="@+id/analogClock1" android:layout_width="wrap_content" android:layout_height="wrap_content" /> <!-- 數字時鐘 --> <DigitalClock android:id="@+id/digitalClock1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="DigitalClock" android:textAppearance="?android:attr/textAppearanceSmallInverse" android:textColor="#f0f" android:textSize="20dp" /> <!-- 模擬時鐘,自定義表盤和時針圖片 --> <AnalogClock android:id="@+id/analogClock2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:dial="@drawable/watch" android:hand_minute="@drawable/hand" /> </LinearLayout> ~~~ ![](https://box.kancloud.cn/2016-03-10_56e0d9a9b2bfb.jpg)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看