Share via


RemoteViews.SetImageViewResource(Int32, Int32) Method

Definition

Equivalent to calling ImageView#setImageResource(int)

[Android.Runtime.Register("setImageViewResource", "(II)V", "GetSetImageViewResource_IIHandler")]
public virtual void SetImageViewResource (int viewId, int srcId);
[<Android.Runtime.Register("setImageViewResource", "(II)V", "GetSetImageViewResource_IIHandler")>]
abstract member SetImageViewResource : int * int -> unit
override this.SetImageViewResource : int * int -> unit

Parameters

viewId
Int32

The id of the view whose drawable should change

srcId
Int32

The new resource id for the drawable

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setImageViewResource(int, 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