시계
안드로이드 위젯 중에는 아날로그시계와 디지털시계가 있다
<AnalogClock
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<DigitalClock
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textSize="30dp"
android:gravity="center"/>
크로노미터(Chronometer)
크로노미터는 타이머 형식의 위젯이다
"start()" : 시작
"stop()" : 정지
"reset()" " 초기화
<Chronometer
android:id="@+id/chm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:format="시간 측정 : %s"
android:gravity="center"
android:textSize="30dp" />