AlertDialog.SetView Method

Definition

Overloads

SetView(View)

Set the view to display in that dialog.

SetView(View, Int32, Int32, Int32, Int32)

Set the view to display in that dialog, specifying the spacing to appear around that view.

SetView(View)

Set the view to display in that dialog.

[Android.Runtime.Register("setView", "(Landroid/view/View;)V", "GetSetView_Landroid_view_View_Handler")]
public virtual void SetView (Android.Views.View? view);
[<Android.Runtime.Register("setView", "(Landroid/view/View;)V", "GetSetView_Landroid_view_View_Handler")>]
abstract member SetView : Android.Views.View -> unit
override this.SetView : Android.Views.View -> unit

Parameters

view
View
Attributes

Remarks

Set the view to display in that dialog.

Java documentation for android.app.AlertDialog.setView(android.view.View).

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, Int32, Int32, Int32, Int32)

Set the view to display in that dialog, specifying the spacing to appear around that view.

[Android.Runtime.Register("setView", "(Landroid/view/View;IIII)V", "GetSetView_Landroid_view_View_IIIIHandler")]
public virtual void SetView (Android.Views.View? view, int viewSpacingLeft, int viewSpacingTop, int viewSpacingRight, int viewSpacingBottom);
[<Android.Runtime.Register("setView", "(Landroid/view/View;IIII)V", "GetSetView_Landroid_view_View_IIIIHandler")>]
abstract member SetView : Android.Views.View * int * int * int * int -> unit
override this.SetView : Android.Views.View * int * int * int * int -> unit

Parameters

view
View

The view to show in the content area of the dialog

viewSpacingLeft
Int32

Extra space to appear to the left of view

viewSpacingTop
Int32

Extra space to appear above view

viewSpacingRight
Int32

Extra space to appear to the right of view

viewSpacingBottom
Int32

Extra space to appear below view

Attributes

Remarks

Set the view to display in that dialog, specifying the spacing to appear around that view.

Java documentation for android.app.AlertDialog.setView(android.view.View, int, int, int, 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