FileDocCategorySizeDatePackage
ResourcesWrapper.javaAPI DocAndroid 5.1 API8662Thu Mar 12 22:22:56 GMT 2015android.support.v7.internal.widget

ResourcesWrapper

public class ResourcesWrapper extends android.content.res.Resources
This extends Resources but delegates the calls to another Resources object. This enables any customization done by some subclass of Resources to be also picked up.

Fields Summary
private final android.content.res.Resources
mResources
Constructors Summary
public ResourcesWrapper(android.content.res.Resources resources)

        super(resources.getAssets(), resources.getDisplayMetrics(), resources.getConfiguration());
        mResources = resources;
    
Methods Summary
public android.content.res.XmlResourceParsergetAnimation(int id)

        return mResources.getAnimation(id);
    
public booleangetBoolean(int id)

        return mResources.getBoolean(id);
    
public intgetColor(int id)

        return mResources.getColor(id);
    
public android.content.res.ColorStateListgetColorStateList(int id)

        return mResources.getColorStateList(id);
    
public android.content.res.ConfigurationgetConfiguration()

        return mResources.getConfiguration();
    
public floatgetDimension(int id)

        return mResources.getDimension(id);
    
public intgetDimensionPixelOffset(int id)

        return mResources.getDimensionPixelOffset(id);
    
public intgetDimensionPixelSize(int id)

        return mResources.getDimensionPixelSize(id);
    
public android.util.DisplayMetricsgetDisplayMetrics()

        return mResources.getDisplayMetrics();
    
public android.graphics.drawable.DrawablegetDrawable(int id)

        return mResources.getDrawable(id);
    
public android.graphics.drawable.DrawablegetDrawable(int id, Theme theme)

        return mResources.getDrawable(id, theme);
    
public android.graphics.drawable.DrawablegetDrawableForDensity(int id, int density)

        return mResources.getDrawableForDensity(id, density);
    
public android.graphics.drawable.DrawablegetDrawableForDensity(int id, int density, Theme theme)

        return mResources.getDrawableForDensity(id, density, theme);
    
public floatgetFraction(int id, int base, int pbase)

        return mResources.getFraction(id, base, pbase);
    
public intgetIdentifier(java.lang.String name, java.lang.String defType, java.lang.String defPackage)

        return mResources.getIdentifier(name, defType, defPackage);
    
public int[]getIntArray(int id)

        return mResources.getIntArray(id);
    
public intgetInteger(int id)

        return mResources.getInteger(id);
    
public android.content.res.XmlResourceParsergetLayout(int id)

        return mResources.getLayout(id);
    
public android.graphics.MoviegetMovie(int id)

        return mResources.getMovie(id);
    
public java.lang.StringgetQuantityString(int id, int quantity, java.lang.Object formatArgs)

        return mResources.getQuantityString(id, quantity, formatArgs);
    
public java.lang.StringgetQuantityString(int id, int quantity)

        return mResources.getQuantityString(id, quantity);
    
public java.lang.CharSequencegetQuantityText(int id, int quantity)

        return mResources.getQuantityText(id, quantity);
    
public java.lang.StringgetResourceEntryName(int resid)

        return mResources.getResourceEntryName(resid);
    
public java.lang.StringgetResourceName(int resid)

        return mResources.getResourceName(resid);
    
public java.lang.StringgetResourcePackageName(int resid)

        return mResources.getResourcePackageName(resid);
    
public java.lang.StringgetResourceTypeName(int resid)

        return mResources.getResourceTypeName(resid);
    
public java.lang.StringgetString(int id)

        return mResources.getString(id);
    
public java.lang.StringgetString(int id, java.lang.Object formatArgs)

        return mResources.getString(id, formatArgs);
    
public java.lang.String[]getStringArray(int id)

        return mResources.getStringArray(id);
    
public java.lang.CharSequencegetText(int id)

        return mResources.getText(id);
    
public java.lang.CharSequencegetText(int id, java.lang.CharSequence def)

        return mResources.getText(id, def);
    
public java.lang.CharSequence[]getTextArray(int id)

        return mResources.getTextArray(id);
    
public voidgetValue(int id, android.util.TypedValue outValue, boolean resolveRefs)

        mResources.getValue(id, outValue, resolveRefs);
    
public voidgetValue(java.lang.String name, android.util.TypedValue outValue, boolean resolveRefs)

        mResources.getValue(name, outValue, resolveRefs);
    
public voidgetValueForDensity(int id, int density, android.util.TypedValue outValue, boolean resolveRefs)

        mResources.getValueForDensity(id, density, outValue, resolveRefs);
    
public android.content.res.XmlResourceParsergetXml(int id)

        return mResources.getXml(id);
    
public android.content.res.TypedArrayobtainAttributes(android.util.AttributeSet set, int[] attrs)

        return mResources.obtainAttributes(set, attrs);
    
public android.content.res.TypedArrayobtainTypedArray(int id)

        return mResources.obtainTypedArray(id);
    
public java.io.InputStreamopenRawResource(int id)

        return mResources.openRawResource(id);
    
public java.io.InputStreamopenRawResource(int id, android.util.TypedValue value)

        return mResources.openRawResource(id, value);
    
public android.content.res.AssetFileDescriptoropenRawResourceFd(int id)

        return mResources.openRawResourceFd(id);
    
public voidparseBundleExtra(java.lang.String tagName, android.util.AttributeSet attrs, android.os.Bundle outBundle)

        mResources.parseBundleExtra(tagName, attrs, outBundle);
    
public voidparseBundleExtras(android.content.res.XmlResourceParser parser, android.os.Bundle outBundle)

        mResources.parseBundleExtras(parser, outBundle);
    
public voidupdateConfiguration(android.content.res.Configuration config, android.util.DisplayMetrics metrics)

        super.updateConfiguration(config, metrics);
        if (mResources != null) { // called from super's constructor. So, need to check.
            mResources.updateConfiguration(config, metrics);
        }