Code example for ContextThemeWrapper

0
 
    /** 
     * see http://stackoverflow.com/a/8547823/438886 
     */ 
    public static Context wrapWithDialogContext(Context context) { 
        return new ContextThemeWrapper(context, android.R.style.Theme_Dialog); 
    } 
}