Share via


ImageSwitcher.SetImageResource(Int32) Method

Definition

Sets a new image on the ImageSwitcher with the given resource id.

[Android.Runtime.Register("setImageResource", "(I)V", "GetSetImageResource_IHandler")]
public virtual void SetImageResource (int resid);
[<Android.Runtime.Register("setImageResource", "(I)V", "GetSetImageResource_IHandler")>]
abstract member SetImageResource : int -> unit
override this.SetImageResource : int -> unit

Parameters

resid
Int32

a Drawable resource id

Attributes

Remarks

Sets a new image on the ImageSwitcher with the given resource id. This will set that image resource on the next ImageView in the switcher and will then switch to that view.

Java documentation for android.widget.ImageSwitcher.setImageResource(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