次の方法で共有


AlertDialog.SetIcon Method

Definition

Overloads

SetIcon(Int32)

Set resId to 0 if you don't want an icon.

SetIcon(Drawable)

Set resId to 0 if you don't want an icon.

SetIcon(Int32)

Set resId to 0 if you don't want an icon.

[Android.Runtime.Register("setIcon", "(I)V", "GetSetIcon_IHandler")]
public virtual void SetIcon (int resId);
[<Android.Runtime.Register("setIcon", "(I)V", "GetSetIcon_IHandler")>]
abstract member SetIcon : int -> unit
override this.SetIcon : int -> unit

Parameters

resId
Int32

the resourceId of the drawable to use as the icon or 0 if you don't want an icon.

Attributes

Remarks

Set resId to 0 if you don't want an icon.

Java documentation for android.app.AlertDialog.setIcon(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

SetIcon(Drawable)

Set resId to 0 if you don't want an icon.

[Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)V", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler")]
public virtual void SetIcon (Android.Graphics.Drawables.Drawable? icon);
[<Android.Runtime.Register("setIcon", "(Landroid/graphics/drawable/Drawable;)V", "GetSetIcon_Landroid_graphics_drawable_Drawable_Handler")>]
abstract member SetIcon : Android.Graphics.Drawables.Drawable -> unit
override this.SetIcon : Android.Graphics.Drawables.Drawable -> unit

Parameters

icon
Drawable
Attributes

Remarks

Java documentation for android.app.AlertDialog.setIcon(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