Android.Test.Mock.MockContext.SetTheme Method
Set the base theme for this context.

Syntax

[Android.Runtime.Register("setTheme", "(I)V", "GetSetTheme_IHandler")]
public override void SetTheme (int resid)

Parameters

resid
The style resource describing the theme.

Remarks

Set the base theme for this context. Note that this should be called before any views are instantiated in the Context (for example before calling Android.App.Activity.SetContentView(Android.Views.View) or Android.Views.LayoutInflater.Inflate(int, Android.Views.ViewGroup)).

[Android Documentation]

Requirements

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