English | Site Directory

Android - An Open Handset Alliance Project

android.widget
public class

android.widget.AnalogClock

java.lang.Object
android.view.View Drawable.Callback KeyEvent.Callback
android.widget.AnalogClock

This widget display an analogic clock with two hands for hours and minutes.

Summary

XML Attributes inherited from class android.view.View
Constants inherited from class android.view.View
Fields inherited from class android.view.View

Public Constructors

          AnalogClock(Context context)
          AnalogClock(Context context, AttributeSet attrs, Map inflateParams)

Protected Methods

        void  onAttachedToWindow()
This is called when the view is attached to a window.
        void  onDetachedFromWindow()
This is called when the view is detached from a window.
        void  onDraw(Canvas canvas)
Implement this to do your drawing.
        void  onMeasure(int widthMeasureSpec, int heightMeasureSpec)

Measure the view and its content to determine the measured width and the measured height.

Methods inherited from class android.view.View