Freigeben über


AlertDialog.Builder.SetNeutralButton Method

Definition

Overloads

SetNeutralButton(ICharSequence, IDialogInterfaceOnClickListener)

Set a listener to be invoked when the neutral button of the dialog is pressed.

SetNeutralButton(ICharSequence, EventHandler<DialogClickEventArgs>)
SetNeutralButton(Int32, IDialogInterfaceOnClickListener)

Set a listener to be invoked when the neutral button of the dialog is pressed.

SetNeutralButton(Int32, EventHandler<DialogClickEventArgs>)
SetNeutralButton(String, IDialogInterfaceOnClickListener)
SetNeutralButton(String, EventHandler<DialogClickEventArgs>)

SetNeutralButton(ICharSequence, IDialogInterfaceOnClickListener)

Set a listener to be invoked when the neutral button of the dialog is pressed.

[Android.Runtime.Register("setNeutralButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetNeutralButton_Ljava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetNeutralButton (Java.Lang.ICharSequence text, Android.Content.IDialogInterfaceOnClickListener listener);
[<Android.Runtime.Register("setNeutralButton", "(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetNeutralButton_Ljava_lang_CharSequence_Landroid_content_DialogInterface_OnClickListener_Handler")>]
abstract member SetNeutralButton : Java.Lang.ICharSequence * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder
override this.SetNeutralButton : Java.Lang.ICharSequence * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parameters

text
ICharSequence

The text to display in the neutral button

Returns

Attributes

Remarks

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

SetNeutralButton(ICharSequence, EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetNeutralButton (Java.Lang.ICharSequence text, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetNeutralButton : Java.Lang.ICharSequence * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parameters

Returns

Remarks

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

SetNeutralButton(Int32, IDialogInterfaceOnClickListener)

Set a listener to be invoked when the neutral button of the dialog is pressed.

[Android.Runtime.Register("setNeutralButton", "(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetNeutralButton_ILandroid_content_DialogInterface_OnClickListener_Handler")]
public virtual Android.App.AlertDialog.Builder SetNeutralButton (int textId, Android.Content.IDialogInterfaceOnClickListener listener);
[<Android.Runtime.Register("setNeutralButton", "(ILandroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;", "GetSetNeutralButton_ILandroid_content_DialogInterface_OnClickListener_Handler")>]
abstract member SetNeutralButton : int * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder
override this.SetNeutralButton : int * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parameters

textId
Int32

The resource id of the text to display in the neutral button

Returns

Attributes

Remarks

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

SetNeutralButton(Int32, EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetNeutralButton (int textId, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetNeutralButton : int * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parameters

textId
Int32

Returns

Remarks

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

SetNeutralButton(String, IDialogInterfaceOnClickListener)

public Android.App.AlertDialog.Builder SetNeutralButton (string text, Android.Content.IDialogInterfaceOnClickListener listener);
member this.SetNeutralButton : string * Android.Content.IDialogInterfaceOnClickListener -> Android.App.AlertDialog.Builder

Parameters

text
String

Returns

Remarks

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

SetNeutralButton(String, EventHandler<DialogClickEventArgs>)

public Android.App.AlertDialog.Builder? SetNeutralButton (string text, EventHandler<Android.Content.DialogClickEventArgs> handler);
member this.SetNeutralButton : string * EventHandler<Android.Content.DialogClickEventArgs> -> Android.App.AlertDialog.Builder

Parameters

text
String

Returns

Remarks

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