Android Guides | Samples

Android.Widget.CheckedTextView Class

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

See Also: CheckedTextView

Syntax

[Android.Runtime.Register("android/widget/CheckedTextView", DoNotGenerateAcw=true)]
public class CheckedTextView : TextView, ICheckable, IDisposable

Remarks

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

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

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Widget.CheckedTextView are listed below.

See Also: TextView

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

CheckedBoolean.
[read-only]
CheckMarkDrawableDrawable. Gets the checkmark drawable
CheckMarkTintListColorStateList. Returns the tint applied to the check mark drawable, if specified.
CheckMarkTintModePorterDuff+Mode. Returns the blending mode used to apply the tint to the check mark drawable, if specified.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

OnPaddingChanged(Int32)
SetCheckMarkDrawable(Drawable)
Set the check mark to the specified drawable.
SetCheckMarkDrawable(Int32)
Sets the check mark to the drawable with the specified resource ID.
Toggle()
Change the checked state of the view to the inverse of its current state