Window.SetContentView Window.SetContentView Method

Definition

Overloads

SetContentView(View) SetContentView(View)

M:Android.Views.Window.SetContentView(Android.Views.View,.LayoutParams)

SetContentView(Int32) SetContentView(Int32)

M:Android.Views.Window.SetContentView(Android.Views.View,.LayoutParams)

SetContentView(View, ViewGroup+LayoutParams) SetContentView(View, ViewGroup+LayoutParams)

Set the screen content to an explicit view.

SetContentView(View) SetContentView(View)

M:Android.Views.Window.SetContentView(Android.Views.View,.LayoutParams)

[Android.Runtime.Register("setContentView", "(Landroid/view/View;)V", "GetSetContentView_Landroid_view_View_Handler")]
public abstract void SetContentView (Android.Views.View view);
abstract member SetContentView : Android.Views.View -> unit

Parameters

view
View View

The desired content to display.

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.

SetContentView(Int32) SetContentView(Int32)

M:Android.Views.Window.SetContentView(Android.Views.View,.LayoutParams)

[Android.Runtime.Register("setContentView", "(I)V", "GetSetContentView_IHandler")]
public abstract void SetContentView (int layoutResID);
abstract member SetContentView : int -> unit

Parameters

layoutResID
Int32 Int32

Resource ID to be inflated.

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.

SetContentView(View, ViewGroup+LayoutParams) SetContentView(View, ViewGroup+LayoutParams)

Set the screen content to an explicit view.

[Android.Runtime.Register("setContentView", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V", "GetSetContentView_Landroid_view_View_Landroid_view_ViewGroup_LayoutParams_Handler")]
public abstract void SetContentView (Android.Views.View view, Android.Views.ViewGroup.LayoutParams params);
abstract member SetContentView : Android.Views.View * Android.Views.ViewGroup.LayoutParams -> unit

Parameters

view
View View

The desired content to display.

params
ViewGroup.LayoutParams ViewGroup.LayoutParams

Layout parameters for the view.

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.

See also

Applies to