1) 建立一個 Project
2) 修改main
<?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:id="@+id/MyClock"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
</LinearLayout>
3) 顯示結果
可改成 Analog Clock Widget
自訂 Analog Clock Widget



沒有留言:
張貼留言