Share via


DrawableContainer.SelectDrawable(Int32) Method

Definition

Sets the currently displayed drawable by index.

[Android.Runtime.Register("selectDrawable", "(I)Z", "GetSelectDrawable_IHandler")]
public virtual bool SelectDrawable (int index);
[<Android.Runtime.Register("selectDrawable", "(I)Z", "GetSelectDrawable_IHandler")>]
abstract member SelectDrawable : int -> bool
override this.SelectDrawable : int -> bool

Parameters

index
Int32

the index of the drawable to display

Returns

true if the drawable changed, false otherwise

Attributes

Remarks

Sets the currently displayed drawable by index.

If an invalid index is specified, the current drawable will be set to null and the index will be set to -1.

Java documentation for android.graphics.drawable.DrawableContainer.selectDrawable(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to