com.android.ide.common.rendering.api
Class DrawableParams
java.lang.Object
com.android.ide.common.rendering.api.RenderParams
com.android.ide.common.rendering.api.DrawableParams
public class DrawableParams
- extends RenderParams
Rendering parameters for Bridge.renderDrawable(DrawableParams)
| Methods inherited from class com.android.ide.common.rendering.api.RenderParams |
getActivityName, getAppIcon, getAppLabel, getAssets, getConfigScreenSize, getDensity, getFlag, getHardwareConfig, getImageFactory, getLayoutlibCallback, getLocale, getLog, getMinSdkVersion, getOverrideBgColor, getProjectCallback, getProjectKey, getResources, getScreenHeight, getScreenWidth, getTargetSdkVersion, getTimeout, getXdpi, getYdpi, isBgColorOverridden, isForceNoDecor, isRtlSupported, setActivityName, setAppIcon, setAppLabel, setAssetRepository, setFlag, setForceNoDecor, setImageFactory, setLocale, setOverrideBgColor, setRtlSupport, setTimeout |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrawableParams
public DrawableParams(ResourceValue drawable,
java.lang.Object projectKey,
HardwareConfig hardwareConfig,
RenderResources renderResources,
LayoutlibCallback layoutlibCallback,
int minSdkVersion,
int targetSdkVersion,
LayoutLog log)
- Builds a param object with all the necessary parameters to render a drawable with
Bridge.renderDrawable(DrawableParams)
- Parameters:
drawable - the ResourceValue identifying the drawable.projectKey - An Object identifying the project. This is used for the cache mechanism.hardwareConfig - the HardwareConfig.renderResources - a RenderResources object providing access to the resources.layoutlibCallback - The LayoutlibCallback object to get information from
the project.minSdkVersion - the minSdkVersion of the projecttargetSdkVersion - the targetSdkVersion of the projectlog - the object responsible for displaying warning/errors to the user.
DrawableParams
public DrawableParams(DrawableParams params)
getDrawable
public ResourceValue getDrawable()