Android Guides | Samples

Android.Widget.CompoundButton Class

See Also: CompoundButton

Syntax

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

Remarks

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.CompoundButton are listed below.

See Also: Button

Public Constructors

Protected Constructors

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

Public Properties

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

SetButtonDrawable(Drawable)
Sets a drawable as the compound button image.
SetButtonDrawable(Int32)
Sets a drawable as the compound button image given its resource identifier.
SetOnCheckedChangeListener(CompoundButton+IOnCheckedChangeListener)
Register a callback to be invoked when the checked state of this button changes.
Toggle()
Change the checked state of the view to the inverse of its current state

Public Events