Share via


SimpleAdapter.SetViewImage Method

Definition

Overloads

SetViewImage(ImageView, Int32)

Called by bindView() to set the image for an ImageView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to an ImageView.

SetViewImage(ImageView, String)

Called by bindView() to set the image for an ImageView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to an ImageView.

SetViewImage(ImageView, Int32)

Called by bindView() to set the image for an ImageView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to an ImageView.

[Android.Runtime.Register("setViewImage", "(Landroid/widget/ImageView;I)V", "GetSetViewImage_Landroid_widget_ImageView_IHandler")]
public virtual void SetViewImage (Android.Widget.ImageView? v, int value);
[<Android.Runtime.Register("setViewImage", "(Landroid/widget/ImageView;I)V", "GetSetViewImage_Landroid_widget_ImageView_IHandler")>]
abstract member SetViewImage : Android.Widget.ImageView * int -> unit
override this.SetViewImage : Android.Widget.ImageView * int -> unit

Parameters

v
ImageView

ImageView to receive an image

value
Int32

the value retrieved from the data set

Attributes

Remarks

Called by bindView() to set the image for an ImageView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to an ImageView.

This method is called instead of #setViewImage(ImageView, String) if the supplied data is an int or Integer.

Java documentation for android.widget.SimpleAdapter.setViewImage(android.widget.ImageView, 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.

See also

  • <xref:Android.Widget.SimpleAdapter.SetViewImage(Android.Widget.ImageView%2c+System.String)>

Applies to

SetViewImage(ImageView, String)

Called by bindView() to set the image for an ImageView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to an ImageView.

[Android.Runtime.Register("setViewImage", "(Landroid/widget/ImageView;Ljava/lang/String;)V", "GetSetViewImage_Landroid_widget_ImageView_Ljava_lang_String_Handler")]
public virtual void SetViewImage (Android.Widget.ImageView? v, string? value);
[<Android.Runtime.Register("setViewImage", "(Landroid/widget/ImageView;Ljava/lang/String;)V", "GetSetViewImage_Landroid_widget_ImageView_Ljava_lang_String_Handler")>]
abstract member SetViewImage : Android.Widget.ImageView * string -> unit
override this.SetViewImage : Android.Widget.ImageView * string -> unit

Parameters

v
ImageView

ImageView to receive an image

value
String

the value retrieved from the data set

Attributes

Remarks

Called by bindView() to set the image for an ImageView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to an ImageView.

By default, the value will be treated as an image resource. If the value cannot be used as an image resource, the value is used as an image Uri.

This method is called instead of #setViewImage(ImageView, int) if the supplied data is not an int or Integer.

Java documentation for android.widget.SimpleAdapter.setViewImage(android.widget.ImageView, java.lang.String).

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.

See also

  • <xref:Android.Widget.SimpleAdapter.SetViewImage(Android.Widget.ImageView%2c+System.Int32)>

Applies to