Share via


AlertDialog.Builder.SetView Method

Definition

Overloads

SetView(Int32)
SetView(View)

Set a custom view to be the contents of the Dialog.

SetView(Int32)

[Android.Runtime.Register("setView", "(I)Landroid/app/AlertDialog$Builder;", "GetSetView_IHandler")]
public virtual Android.App.AlertDialog.Builder SetView (int layoutResId);
[<Android.Runtime.Register("setView", "(I)Landroid/app/AlertDialog$Builder;", "GetSetView_IHandler")>]
abstract member SetView : int -> Android.App.AlertDialog.Builder
override this.SetView : int -> Android.App.AlertDialog.Builder

Parameters

layoutResId
Int32

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

SetView(View)

Set a custom view to be the contents of the Dialog.

[Android.Runtime.Register("setView", "(Landroid/view/View;)Landroid/app/AlertDialog$Builder;", "GetSetView_Landroid_view_View_Handler")]
public virtual Android.App.AlertDialog.Builder SetView (Android.Views.View view);
[<Android.Runtime.Register("setView", "(Landroid/view/View;)Landroid/app/AlertDialog$Builder;", "GetSetView_Landroid_view_View_Handler")>]
abstract member SetView : Android.Views.View -> Android.App.AlertDialog.Builder
override this.SetView : Android.Views.View -> Android.App.AlertDialog.Builder

Parameters

view
View

The view to use as the contents of the Dialog.

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