Package com.transifex.txnative.wrappers
Class VectorEnabledTintResourcesWrapper
java.lang.Object
android.content.res.Resources
androidx.appcompat.widget.VectorEnabledTintResources
com.transifex.txnative.wrappers.VectorEnabledTintResourcesWrapper
This extends VectorEnabledTintResources but delegates all calls, except for the ones implemented in
VectorEnabledTintResources, to the base Resources object. This enables any customization done
by some subclass of Resources to be also picked up, while having the functionality of
VectorEnabledTintResources.
-
Nested Class Summary
Nested classes/interfaces inherited from class android.content.res.Resources
Resources.NotFoundException, Resources.Theme
-
Field Summary
Fields inherited from class androidx.appcompat.widget.VectorEnabledTintResources
MAX_SDK_WHERE_REQUIRED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnimation
(int id) boolean
getBoolean
(int id) int
getColor
(int id) getColorStateList
(int id) float
getDimension
(int id) int
getDimensionPixelOffset
(int id) int
getDimensionPixelSize
(int id) getDrawable
(int id, Resources.Theme theme) getDrawableForDensity
(int id, int density) getDrawableForDensity
(int id, int density, Resources.Theme theme) float
getFraction
(int id, int base, int pbase) int
getIdentifier
(String name, String defType, String defPackage) int[]
getIntArray
(int id) int
getInteger
(int id) getLayout
(int id) getMovie
(int id) getQuantityString
(int id, int quantity) getQuantityString
(int id, int quantity, Object... formatArgs) getQuantityText
(int id, int quantity) getResourceEntryName
(int resid) getResourceName
(int resid) getResourcePackageName
(int resid) getResourceTypeName
(int resid) getString
(int id) String[]
getStringArray
(int id) getText
(int id) getText
(int id, CharSequence def) getTextArray
(int id) void
getValue
(int id, TypedValue outValue, boolean resolveRefs) void
getValue
(String name, TypedValue outValue, boolean resolveRefs) void
getValueForDensity
(int id, int density, TypedValue outValue, boolean resolveRefs) getXml
(int id) obtainAttributes
(AttributeSet set, int[] attrs) obtainTypedArray
(int id) openRawResource
(int id) openRawResource
(int id, TypedValue value) openRawResourceFd
(int id) void
parseBundleExtra
(String tagName, AttributeSet attrs, Bundle outBundle) void
parseBundleExtras
(XmlResourceParser parser, Bundle outBundle) void
updateConfiguration
(Configuration config, DisplayMetrics metrics) Methods inherited from class androidx.appcompat.widget.VectorEnabledTintResources
getDrawable, isCompatVectorFromResourcesEnabled, setCompatVectorFromResourcesEnabled, shouldBeUsed
Methods inherited from class android.content.res.Resources
addLoaders, finishPreloading, flushLayoutCache, getAssets, getAttributeSetSourceResId, getColor, getColorStateList, getFloat, getFont, getSystem, newTheme, removeLoaders
-
Constructor Details
-
VectorEnabledTintResourcesWrapper
-
-
Method Details
-
getText
- Throws:
Resources.NotFoundException
-
getQuantityText
- Throws:
Resources.NotFoundException
-
getString
- Throws:
Resources.NotFoundException
-
getString
- Throws:
Resources.NotFoundException
-
getQuantityString
public String getQuantityString(int id, int quantity, Object... formatArgs) throws Resources.NotFoundException - Throws:
Resources.NotFoundException
-
getQuantityString
- Throws:
Resources.NotFoundException
-
getText
-
getTextArray
- Throws:
Resources.NotFoundException
-
getStringArray
- Throws:
Resources.NotFoundException
-
getIntArray
- Throws:
Resources.NotFoundException
-
obtainTypedArray
- Throws:
Resources.NotFoundException
-
getDimension
- Throws:
Resources.NotFoundException
-
getDimensionPixelOffset
- Throws:
Resources.NotFoundException
-
getDimensionPixelSize
- Throws:
Resources.NotFoundException
-
getFraction
public float getFraction(int id, int base, int pbase) -
getDrawable
@RequiresApi(21) public Drawable getDrawable(int id, Resources.Theme theme) throws Resources.NotFoundException - Throws:
Resources.NotFoundException
-
getDrawableForDensity
@RequiresApi(15) public Drawable getDrawableForDensity(int id, int density) throws Resources.NotFoundException - Throws:
Resources.NotFoundException
-
getDrawableForDensity
-
getMovie
- Throws:
Resources.NotFoundException
-
getColor
- Throws:
Resources.NotFoundException
-
getColorStateList
- Throws:
Resources.NotFoundException
-
getBoolean
- Throws:
Resources.NotFoundException
-
getInteger
- Throws:
Resources.NotFoundException
-
getLayout
- Throws:
Resources.NotFoundException
-
getAnimation
- Throws:
Resources.NotFoundException
-
getXml
- Throws:
Resources.NotFoundException
-
openRawResource
- Throws:
Resources.NotFoundException
-
openRawResource
- Throws:
Resources.NotFoundException
-
openRawResourceFd
- Throws:
Resources.NotFoundException
-
getValue
public void getValue(int id, TypedValue outValue, boolean resolveRefs) throws Resources.NotFoundException - Throws:
Resources.NotFoundException
-
getValueForDensity
@RequiresApi(15) public void getValueForDensity(int id, int density, TypedValue outValue, boolean resolveRefs) throws Resources.NotFoundException - Throws:
Resources.NotFoundException
-
getValue
public void getValue(String name, TypedValue outValue, boolean resolveRefs) throws Resources.NotFoundException - Throws:
Resources.NotFoundException
-
obtainAttributes
-
updateConfiguration
-
getDisplayMetrics
-
getConfiguration
-
getIdentifier
-
getResourceName
- Throws:
Resources.NotFoundException
-
getResourcePackageName
- Throws:
Resources.NotFoundException
-
getResourceTypeName
- Throws:
Resources.NotFoundException
-
getResourceEntryName
- Throws:
Resources.NotFoundException
-
parseBundleExtras
public void parseBundleExtras(XmlResourceParser parser, Bundle outBundle) throws XmlPullParserException, IOException - Throws:
XmlPullParserException
IOException
-
parseBundleExtra
public void parseBundleExtra(String tagName, AttributeSet attrs, Bundle outBundle) throws XmlPullParserException - Throws:
XmlPullParserException
-