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

TintResources

public class TintResources extends ResourcesWrapper
This class allows us to intercept calls so that we can tint resources (if applicable).
hide

Fields Summary
private final TintManager
mTintManager
Constructors Summary
public TintResources(android.content.res.Resources resources, TintManager tintManager)

        super(resources);
        mTintManager = tintManager;
    
Methods Summary
public android.graphics.drawable.DrawablegetDrawable(int id)
We intercept this call so that we tint the result (if applicable). This is needed for things like {@link DrawableContainer}s which retrieve their children via this method.

        Drawable d = super.getDrawable(id);
        if (d != null) {
            mTintManager.tintDrawable(id, d);
        }
        return d;