public class VectorEnabledTintResources extends Resources
Resources.NotFoundException, Resources.Theme
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SDK_WHERE_REQUIRED
The maximum API level where this class is needed.
|
Constructor and Description |
---|
VectorEnabledTintResources(Context context,
Resources res) |
Modifier and Type | Method and Description |
---|---|
Drawable |
getDrawable(int id)
We intercept this call so that we tint the result (if applicable).
|
static boolean |
shouldBeUsed() |
calcConfigChanges, finishPreloading, flushLayoutCache, getAnimation, getAnimatorCache, getAssets, getBoolean, getClassLoader, getColor, getColor, getColorStateList, getColorStateList, getCompatibilityInfo, getConfiguration, getDimension, getDimensionPixelOffset, getDimensionPixelSize, getDisplayAdjustments, getDisplayMetrics, getDrawable, getDrawableForDensity, getDrawableForDensity, getDrawableInflater, getFloat, getFraction, getIdentifier, getImpl, getIntArray, getInteger, getLayout, getMovie, getPreloadedDrawables, getQuantityString, getQuantityString, getQuantityText, getResourceEntryName, getResourceName, getResourcePackageName, getResourceTypeName, getSizeConfigurations, getStateListAnimatorCache, getString, getString, getStringArray, getSystem, getText, getText, getTextArray, getValue, getValue, getValueForDensity, getXml, loadComplexColor, newTheme, obtainAttributes, obtainAttributes, obtainTypedArray, openRawResource, openRawResource, openRawResourceFd, parseBundleExtra, parseBundleExtras, resourceHasPackage, selectDefaultTheme, selectSystemTheme, setCompatibilityInfo, setImpl, startPreloading, updateConfiguration, updateConfiguration, updateSystemConfiguration
public static final int MAX_SDK_WHERE_REQUIRED
public static boolean shouldBeUsed()
public Drawable getDrawable(int id) throws Resources.NotFoundException
DrawableContainer
s which can retrieve
their children via this method.getDrawable
in class Resources
id
- The desired resource identifier, as generated by the aapt
tool. This integer encodes the package, type, and resource
entry. The value 0 is an invalid identifier.Resources.NotFoundException
- Throws NotFoundException if the given ID does
not exist.Resources.getDrawable(int, Theme)