Android.App.Activity.SetContentView Method
Set the activity content to an explicit view.

Syntax

[Android.Runtime.Register("setContentView", "(Landroid/view/View;)V", "GetSetContentView_Landroid_view_View_Handler")]
public virtual void SetContentView (Android.Views.View view)

See Also

Activity.SetContentView(int)
Activity.SetContentView(Android.Views.View, .LayoutParams)

Parameters

view
The desired content to display.

Remarks

Set the activity content to an explicit view. This view is placed directly into the activity's view hierarchy. It can itself be a complex view hierarchy. When calling this method, the layout parameters of the specified view are ignored. Both the width and the height of the view are set by default to NoType:android/view/ViewGroup$LayoutParams;Href=../../../reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT. To use your own layout parameters, invoke Activity.SetContentView(Android.Views.View, .LayoutParams) instead.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1