Package org.robolectric.shadows
Class ShadowArscResourcesImpl
java.lang.Object
org.robolectric.shadows.ShadowResourcesImpl
org.robolectric.shadows.ShadowArscResourcesImpl
@Implements(value=android.content.res.ResourcesImpl.class,
isInAndroidSdk=false,
minSdk=24,
shadowPicker=Picker.class)
public class ShadowArscResourcesImpl
extends ShadowResourcesImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowResourcesImpl
ShadowResourcesImpl.Picker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadDrawable(Resources wrapper, TypedValue value, int id, int density, Resources.Theme theme) loadDrawable(Resources wrapper, TypedValue value, int id, Resources.Theme theme, boolean useCache) openRawResourceFd(int id) SinceAssetFileDescriptors are not yet supported by Robolectric,nullwill be returned if the resource is found.Methods inherited from class org.robolectric.shadows.ShadowResourcesImpl
reset
-
Constructor Details
-
ShadowArscResourcesImpl
public ShadowArscResourcesImpl()
-
-
Method Details
-
openRawResourceFd
@Implementation(maxSdk=23) public AssetFileDescriptor openRawResourceFd(int id) throws Resources.NotFoundException SinceAssetFileDescriptors are not yet supported by Robolectric,nullwill be returned if the resource is found. If the resource cannot be found,Resources.NotFoundExceptionwill be thrown.- Throws:
Resources.NotFoundException
-
loadDrawable
@Implementation(maxSdk=25) public Drawable loadDrawable(Resources wrapper, TypedValue value, int id, Resources.Theme theme, boolean useCache) throws Resources.NotFoundException - Throws:
Resources.NotFoundException
-
loadDrawable
@Implementation(minSdk=26) public Drawable loadDrawable(Resources wrapper, TypedValue value, int id, int density, Resources.Theme theme)
-