Aracılığıyla paylaş


Context.SetTheme(Int32) Method

Definition

Set the base theme for this context.

[Android.Runtime.Register("setTheme", "(I)V", "GetSetTheme_IHandler")]
public abstract void SetTheme (int resid);
[<Android.Runtime.Register("setTheme", "(I)V", "GetSetTheme_IHandler")>]
abstract member SetTheme : int -> unit

Parameters

resid
Int32

The style resource describing the theme.

Attributes

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 or android.view.LayoutInflater#inflate).

Java documentation for android.content.Context.setTheme(int).

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.

Applies to