ActionBar.ThemedContext Property

Definition

Returns a Context with an appropriate theme for creating views that will appear in the action bar.

public virtual Android.Content.Context? ThemedContext { [Android.Runtime.Register("getThemedContext", "()Landroid/content/Context;", "GetGetThemedContextHandler")] get; }
[<get: Android.Runtime.Register("getThemedContext", "()Landroid/content/Context;", "GetGetThemedContextHandler")>]
member this.ThemedContext : Android.Content.Context

Property Value

A themed Context for creating views

Attributes

Remarks

Returns a Context with an appropriate theme for creating views that will appear in the action bar. If you are inflating or instantiating custom views that will appear in an action bar, you should use the Context returned by this method. (This includes adapters used for list navigation mode.) This will ensure that views contrast properly against the action bar.

Java documentation for android.app.ActionBar.getThemedContext().

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