Added in API level 1
Deprecated in API level 17

DigitalClock


open class DigitalClock : TextView
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.TextView
   ↳ android.widget.DigitalClock

Like AnalogClock, but digital.

Summary

Inherited XML attributes
Inherited constants
Public constructors
DigitalClock(context: Context!)

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

Public methods
open CharSequence!

Return the class name of this object to be used for accessibility purposes.

Protected methods
open Unit

This is called when the view is attached to a window.

open Unit

This is called when the view is detached from a window.

Inherited functions
Inherited properties

Public constructors

DigitalClock

Added in API level 1
DigitalClock(context: Context!)

DigitalClock

Added in API level 1
DigitalClock(
    context: Context!,
    attrs: AttributeSet!)

Public methods

getAccessibilityClassName

Added in API level 23
Deprecated in API level 17
open fun getAccessibilityClassName(): CharSequence!

Deprecated: Deprecated in Java.

Return the class name of this object to be used for accessibility purposes. Subclasses should only override this if they are implementing something that should be seen as a completely new class of view when used by accessibility, unrelated to the class it is deriving from. This is used to fill in AccessibilityNodeInfo.setClassName.

Protected methods

onAttachedToWindow

Added in API level 1
protected open fun onAttachedToWindow(): Unit

Deprecated: Deprecated in Java.

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(android.graphics.Canvas), however it may be called any time before the first onDraw -- including before or after onMeasure(int,int).
If you override this method you must call through to the superclass implementation.

onDetachedFromWindow

Added in API level 1
protected open fun onDetachedFromWindow(): Unit

Deprecated: Deprecated in Java.

This is called when the view is detached from a window. At this point it no longer has a surface for drawing.
If you override this method you must call through to the superclass implementation.