ImageView.SetImageResource(Int32) ImageView.SetImageResource(Int32) Method

Definition

Sets a drawable as the content of this ImageView.

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

Parameters

resId
Int32 Int32

the resource identifier of the drawable

Remarks

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