Share via


AlertDialog.SetIconAttribute(Int32) Method

Definition

Set an icon as supplied by a theme attribute.

[Android.Runtime.Register("setIconAttribute", "(I)V", "GetSetIconAttribute_IHandler")]
public virtual void SetIconAttribute (int attrId);
[<Android.Runtime.Register("setIconAttribute", "(I)V", "GetSetIconAttribute_IHandler")>]
abstract member SetIconAttribute : int -> unit
override this.SetIconAttribute : int -> unit

Parameters

attrId
Int32

ID of a theme attribute that points to a drawable resource.

Attributes

Remarks

Set an icon as supplied by a theme attribute. e.g. android.R.attr.alertDialogIcon

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