Added in API level 1
Deprecated in API level 23

AnalogClock


open class AnalogClock : View
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.AnalogClock

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

Summary

XML attributes
android:dial
android:hand_hour
android:hand_minute
android:hand_second
android:timeZone Specifies the time zone to use.
Inherited XML attributes
Inherited constants
Public constructors
AnalogClock(context: Context!)

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

AnalogClock(context: Context!, attrs: AttributeSet!, defStyleAttr: Int)

AnalogClock(context: Context!, attrs: AttributeSet!, defStyleAttr: Int, defStyleRes: Int)

Public methods
open BlendMode?

open ColorStateList?

open BlendMode?

open ColorStateList?

open BlendMode?

open ColorStateList?

open BlendMode?

open ColorStateList?

open String?

Indicates which time zone is currently used by this view.

open Unit

Called when the user-visibility of this View is potentially affected by a change to this view itself, an ancestor view or the window this view is attached to.

open Unit
setDial(icon: Icon)

Sets the dial of the clock to the specified Icon.

open Unit

Specifies the blending mode used to apply the tint specified by setDialTintList(android.content.res.ColorStateList)} to the dial drawable.

open Unit

Applies a tint to the dial drawable.

open Unit

Sets the hour hand of the clock to the specified Icon.

open Unit

Specifies the blending mode used to apply the tint specified by setHourHandTintList(android.content.res.ColorStateList)} to the hour hand drawable.

open Unit

Applies a tint to the hour hand drawable.

open Unit

Sets the minute hand of the clock to the specified Icon.

open Unit

Specifies the blending mode used to apply the tint specified by setMinuteHandTintList(android.content.res.ColorStateList)} to the minute hand drawable.

open Unit

Applies a tint to the minute hand drawable.

open Unit

Sets the second hand of the clock to the specified Icon, or hides the second hand if it is null.

open Unit

Specifies the blending mode used to apply the tint specified by setSecondHandTintList(android.content.res.ColorStateList)} to the second hand drawable.

open Unit

Applies a tint to the second hand drawable.

open Unit
setTimeZone(timeZone: String?)

Sets the specified time zone to use in this clock.

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.

open Unit
onDraw(canvas: Canvas)

Implement this to do your drawing.

open Unit
onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int)

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

open Unit
onSizeChanged(w: Int, h: Int, oldw: Int, oldh: Int)

This is called during layout when the size of this view has changed.

Inherited functions