public class ResourceProxyImpl extends DefaultResourceProxyImpl
DefaultResourceProxyImpl
that first tries to get from resources by using reflection to get the id of the resource
from the package that the context is in.ResourceProxy.bitmap, ResourceProxy.string
ANIMATION_DURATION_DEFAULT, ANIMATION_DURATION_LONG, ANIMATION_DURATION_SHORT, ANIMATION_SMOOTHNESS_DEFAULT, ANIMATION_SMOOTHNESS_HIGH, ANIMATION_SMOOTHNESS_LOW, DEBUGMODE, MINIMUM_ZOOMLEVEL, NOT_SET
Constructor and Description |
---|
ResourceProxyImpl(android.content.Context aContext) |
Modifier and Type | Method and Description |
---|---|
android.graphics.Bitmap |
getBitmap(ResourceProxy.bitmap pResId) |
android.graphics.drawable.Drawable |
getDrawable(ResourceProxy.bitmap pResId)
Get a bitmap as a
Drawable |
String |
getString(ResourceProxy.string pResId) |
String |
getString(ResourceProxy.string pResId,
Object... formatArgs)
Use a string resource as a format definition, and format using the supplied format arguments.
|
getDisplayMetricsDensity
public String getString(ResourceProxy.string pResId)
getString
in interface ResourceProxy
getString
in class DefaultResourceProxyImpl
public String getString(ResourceProxy.string pResId, Object... formatArgs)
ResourceProxy
getString
in interface ResourceProxy
getString
in class DefaultResourceProxyImpl
public android.graphics.Bitmap getBitmap(ResourceProxy.bitmap pResId)
getBitmap
in interface ResourceProxy
getBitmap
in class DefaultResourceProxyImpl
public android.graphics.drawable.Drawable getDrawable(ResourceProxy.bitmap pResId)
ResourceProxy
Drawable
getDrawable
in interface ResourceProxy
getDrawable
in class DefaultResourceProxyImpl
Copyright © 2015. All Rights Reserved.