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

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

open Unit

open Unit
onDraw(canvas: Canvas)

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

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

Inherited functions