Share via


RemoteViews.SetImageViewIcon(Int32, Icon) Method

Definition

Equivalent to calling ImageView#setImageIcon(Icon)

[Android.Runtime.Register("setImageViewIcon", "(ILandroid/graphics/drawable/Icon;)V", "GetSetImageViewIcon_ILandroid_graphics_drawable_Icon_Handler", ApiSince=23)]
public virtual void SetImageViewIcon (int viewId, Android.Graphics.Drawables.Icon? icon);
[<Android.Runtime.Register("setImageViewIcon", "(ILandroid/graphics/drawable/Icon;)V", "GetSetImageViewIcon_ILandroid_graphics_drawable_Icon_Handler", ApiSince=23)>]
abstract member SetImageViewIcon : int * Android.Graphics.Drawables.Icon -> unit
override this.SetImageViewIcon : int * Android.Graphics.Drawables.Icon -> unit

Parameters

viewId
Int32

The id of the view whose bitmap should change

icon
Icon

The new Icon for the ImageView

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setImageViewIcon(int, android.graphics.drawable.Icon).

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