2015-11-07 AndroidのUI - TextClockとAnalogClock ┗━UI Android activity_main.xml <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical"> <!-- デフォルトAnalogClock --> <AnalogClock android:layout_width="wrap_content" android:layout_height="wrap_content" /> <TextClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:textSize="12pt" android:textColor="#f0f" android:text="このテキストは無視される" android:format12Hour="yyyy年MM月dd日 H:mma EEE"/> <!-- カスタムAnalogClock --> <AnalogClock android:layout_width="wrap_content" android:layout_height="wrap_content" android:hand_hour="@drawable/hand" android:dial="@drawable/watch" android:format12Hour="yyyy年MM月dd日 H:mma EEE"/></LinearLayout>