@Implements(value=android.content.Context.class) public abstract class ShadowContext extends Object
Context.| Constructor and Description |
|---|
ShadowContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
callAttachBaseContext(android.content.Context context) |
org.robolectric.shadows.RoboAttributeSet |
createAttributeSet(List<org.robolectric.res.Attribute> attributes,
Class<? extends android.view.View> viewClass) |
File |
getExternalCacheDir() |
File |
getExternalFilesDir(String type) |
org.robolectric.res.ResName |
getResName(int resourceId) |
org.robolectric.res.ResourceLoader |
getResourceLoader()
Non-Android accessor.
|
android.content.res.Resources |
getResources() |
ShadowApplication |
getShadowApplication() |
String |
getString(int resId) |
String |
getString(int resId,
Object... formatArgs) |
CharSequence |
getText(int resId) |
boolean |
isStrictI18n() |
@Implementation public String getString(int resId)
@Implementation public CharSequence getText(int resId)
public org.robolectric.shadows.RoboAttributeSet createAttributeSet(List<org.robolectric.res.Attribute> attributes, Class<? extends android.view.View> viewClass)
@Implementation public android.content.res.Resources getResources()
@Implementation public File getExternalCacheDir()
public org.robolectric.res.ResourceLoader getResourceLoader()
ResourceLoader associated with this Contextpublic boolean isStrictI18n()
public org.robolectric.res.ResName getResName(int resourceId)
public ShadowApplication getShadowApplication()
public void callAttachBaseContext(android.content.Context context)
Copyright © 2015. All rights reserved.