本文實例講述了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>
更多關(guān)于Android開發(fā)相關(guān)內(nèi)容感興趣的讀者可查看本站專題:《Android開發(fā)入門與進階教程》
希望本文所述對大家Android程序設(shè)計有所幫助。
新聞熱點
疑難解答
圖片精選