Android.Service.Dreams.DreamService.SetContentView Method
Sets a view to be the content view for this Dream.

Syntax

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

See Also

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

Parameters

view
Documentation for this section has not yet been entered.

Remarks

Sets a view to be the content view for this Dream. Behaves similarly to Android.App.Activity.SetContentView(Android.Views.View) in an activity, including using NoType:android/view/ViewGroup$LayoutParams;Href=../../../../reference/android/view/ViewGroup.LayoutParams.html#MATCH_PARENT as the layout height and width of the view.

Note: This requires a window, so you should usually call it during DreamService.OnAttachedToWindow and never earlier (you cannot call it during DreamService.onCreate()).

[Android Documentation]

Requirements

Namespace: Android.Service.Dreams
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17