AlertDialog.SetIcon Method   
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 -> unitParameters
- 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 -> unitParameters
- 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.