Android Guides | Samples

Android.App.Dialog.SetContentView Method

Set the screen content from a layout resource.

Syntax

[Android.Runtime.Register("setContentView", "(I)V", "GetSetContentView_IHandler")]
public virtual Void SetContentView (Int32 layoutResID)

Parameters

layoutResID
Resource ID to be inflated.

Remarks

Set the screen content from a layout resource. The resource will be inflated, adding all top-level views to the screen.

[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