Example #1
0
 public override android.content.Context getThemedContext()
 {
     if (mThemedContext == null)
     {
         android.util.TypedValue             outValue     = new android.util.TypedValue();
         android.content.res.Resources.Theme currentTheme = mContext.getTheme();
         currentTheme.resolveAttribute([email protected], outValue
                                       , true);
         int targetThemeRes = outValue.resourceId;
         if (targetThemeRes != 0 && mContext.getThemeResId() != targetThemeRes)
         {
             mThemedContext = new android.view.ContextThemeWrapper(mContext, targetThemeRes);
         }
         else
         {
             mThemedContext = mContext;
         }
     }
     return(mThemedContext);
 }