Added in API level 1

CheckedTextView


open class CheckedTextView : TextView, Checkable
kotlin.Any
   ↳ android.view.View
   ↳ android.widget.TextView
   ↳ android.widget.CheckedTextView

An extension to TextView that supports the Checkable interface and displays.

This is useful when used in a ListView where the setChoiceMode has been set to something other than CHOICE_MODE_NONE.

Summary

XML attributes
android:checkMark Drawable used for the check mark graphic.
android:checked Indicates the initial checked state of this text.
Inherited XML attributes
Inherited constants
Public constructors

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

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

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

Public methods
open Unit

open CharSequence!

open Drawable!

Gets the checkmark drawable

open BlendMode?

Returns the blending mode used to apply the tint to the check mark drawable, if specified.

open ColorStateList?

Returns the tint applied to the check mark drawable, if specified.

open PorterDuff.Mode?

Returns the blending mode used to apply the tint to the check mark drawable, if specified.

open Boolean

open Unit

open Unit

open Unit
onRtlPropertiesChanged(layoutDirection: Int)

open Parcelable?

open Unit

Set the check mark to the specified drawable.

open Unit

Sets the check mark to the drawable with the specified resource ID.

open Unit

Specifies the blending mode used to apply the tint specified by setCheckMarkTintList(android.content.res.ColorStateList) to the check mark drawable.

open Unit

Applies a tint to the check mark drawable.

open Unit

Specifies the blending mode used to apply the tint specified by setCheckMarkTintList(android.content.res.ColorStateList) to the check mark drawable.

open Unit
setChecked(checked: Boolean)

Sets the checked state of this view.

open Unit
setVisibility(visibility: Int)

open Unit

Protected methods
open Unit

open IntArray!

open Unit
onDraw(canvas: Canvas)

open Boolean

If your view subclass is displaying its own Drawable objects, it should override this function and return true for any Drawable it is displaying.

Inherited functions