AlertDialog.Builder.SetIconAttribute(Int32) 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.
Set an icon as supplied by a theme attribute.
[Android.Runtime.Register("setIconAttribute", "(I)Landroid/app/AlertDialog$Builder;", "GetSetIconAttribute_IHandler")]
public virtual Android.App.AlertDialog.Builder SetIconAttribute(int attrId);
[<Android.Runtime.Register("setIconAttribute", "(I)Landroid/app/AlertDialog$Builder;", "GetSetIconAttribute_IHandler")>]
abstract member SetIconAttribute : int -> Android.App.AlertDialog.Builder
override this.SetIconAttribute : int -> Android.App.AlertDialog.Builder
Parameters
- attrId
- Int32
int: ID of a theme attribute that points to a drawable resource.
Returns
This Android.App.AlertDialog.Builder instance, allowing calls to be chained.
- Attributes
Remarks
Set an icon as supplied by a theme attribute. e.g. R.attr.alertDialogIcon. Takes precedence over values set using setIcon(int) or setIcon(Drawable).
Android reference for android.app.AlertDialog.Builder.setIconAttribute.
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.