com.xtremelabs.robolectric.shadows
Class ShadowResources
java.lang.Object
com.xtremelabs.robolectric.shadows.ShadowResources
@Implements(value=android.content.res.Resources.class)
public class ShadowResources
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ShadowResources
public ShadowResources()
getColor
@Implementation
public int getColor(int id)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
getString
@Implementation
public java.lang.String getString(int id)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
getString
@Implementation
public java.lang.String getString(int id,
java.lang.Object... formatArgs)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
getStringArray
@Implementation
public java.lang.String[] getStringArray(int id)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
getText
@Implementation
public java.lang.CharSequence getText(int id)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
getDisplayMetrics
@Implementation
public android.util.DisplayMetrics getDisplayMetrics()
getDrawable
@Implementation
public android.graphics.drawable.Drawable getDrawable(int drawableResourceId)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
getDimension
@Implementation
public float getDimension(int id)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
getDimensionPixelSize
@Implementation
public int getDimensionPixelSize(int id)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
getDimensionPixelOffset
@Implementation
public int getDimensionPixelOffset(int id)
throws android.content.res.Resources.NotFoundException
- Throws:
android.content.res.Resources.NotFoundException
setDimension
public void setDimension(int id,
int value)