Android
android.widget
public class

android.widget.DigitalClock

java.lang.Object
android.view.View Drawable.Callback KeyEvent.Callback
android.widget.TextView ViewTreeObserver.OnPreDrawListener
android.widget.DigitalClock

Like AnalogClock, but digital. Shows seconds. FIXME: implement separate views for hours/minutes/seconds, so proportional fonts don't shake rendering

Summary

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

Public Constructors

            DigitalClock(Context context)
            DigitalClock(Context context, AttributeSet attrs)

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.
Methods inherited from class android.widget.TextView
Methods inherited from class android.view.View
Methods inherited from class java.lang.Object
Methods inherited from interface android.graphics.drawable.Drawable.Callback
Methods inherited from interface android.view.KeyEvent.Callback
Methods inherited from interface android.view.ViewTreeObserver.OnPreDrawListener

Details

Public Constructors

public DigitalClock(Context context)

public DigitalClock(Context context, AttributeSet attrs)

Protected Methods

protected void onAttachedToWindow()

This is called when the view is attached to a window. At this point it has a Surface and will start drawing. Note that this function is guaranteed to be called before onDraw(Canvas), however it may be called any time before the first onDraw -- including before or after onMeasure(int, int).

protected void onDetachedFromWindow()

This is called when the view is detached from a window. At this point it no longer has a surface for drawing.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56