Android ContextThemeWrapper Introduction

Android ContextThemeWrapper Tutorial and Example.

ContextThemeWrapper is a class an implementation of the Context class that acts as a proxy,delegating all its calls to another Context.

General Use

No. Use
1. As a proxy. To delegate calls to other Contexts. ContextThemeWrapper can be subclassed and modified without affecting the original Context.

Characteristics of ContextThemeWrapper

It’s a concrete class:

public class ContextThemeWrapper..{}

residing in adnroid.content package:

package android.content;

It derives from android.content.Context:

public class ContextThemeWrapper extends Context{}

Share an Example

Share an Example

What is the capital of Egypt? ( Cairo )