Android Essentials → Android ContextThemeWrapper Introduction – Camposha

Android Essentials

Android Essentials

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{}

Leave a Reply

Your email address will not be published. Required fields are marked *


Not enough ratings to display
Join Us