Sdílet prostřednictvím


RemoteViews.SetImageViewBitmap(Int32, Bitmap) Method

Definition

Equivalent to calling ImageView#setImageBitmap(Bitmap)

[Android.Runtime.Register("setImageViewBitmap", "(ILandroid/graphics/Bitmap;)V", "GetSetImageViewBitmap_ILandroid_graphics_Bitmap_Handler")]
public virtual void SetImageViewBitmap (int viewId, Android.Graphics.Bitmap? bitmap);
[<Android.Runtime.Register("setImageViewBitmap", "(ILandroid/graphics/Bitmap;)V", "GetSetImageViewBitmap_ILandroid_graphics_Bitmap_Handler")>]
abstract member SetImageViewBitmap : int * Android.Graphics.Bitmap -> unit
override this.SetImageViewBitmap : int * Android.Graphics.Bitmap -> unit

Parameters

viewId
Int32

The id of the view whose bitmap should change

bitmap
Bitmap

The new Bitmap for the drawable

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setImageViewBitmap(int, android.graphics.Bitmap).

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