public class DrawableParams extends RenderParams
Bridge.renderDrawable(DrawableParams)DEFAULT_TIMEOUT| Constructor and Description |
|---|
DrawableParams(DrawableParams params) |
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) |
| Modifier and Type | Method and Description |
|---|---|
ResourceValue |
getDrawable() |
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, isQuickStepEnabled, isRtlSupported, setActivityName, setAppIcon, setAppLabel, setAssetRepository, setFlag, setForceNoDecor, setImageFactory, setLocale, setOverrideBgColor, setQuickStep, setRtlSupport, setTimeoutpublic DrawableParams(ResourceValue drawable, java.lang.Object projectKey, HardwareConfig hardwareConfig, RenderResources renderResources, LayoutlibCallback layoutlibCallback, int minSdkVersion, int targetSdkVersion, LayoutLog log)
Bridge.renderDrawable(DrawableParams)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.public DrawableParams(DrawableParams params)
public ResourceValue getDrawable()