public static class LockscreenWallpaper.WallpaperDrawable extends DrawableWrapper
Drawable.Callback
Constructor and Description |
---|
WallpaperDrawable(Resources r,
Bitmap b) |
Modifier and Type | Method and Description |
---|---|
com.android.systemui.statusbar.phone.LockscreenWallpaper.WallpaperDrawable.ConstantState |
getConstantState()
Return a
Drawable.ConstantState instance that holds the shared state of this Drawable. |
int |
getIntrinsicHeight()
Returns the drawable's intrinsic height.
|
int |
getIntrinsicWidth()
Returns the drawable's intrinsic width.
|
protected void |
onBoundsChange(Rect bounds)
Override this in your subclass to change appearance if you vary based on
the bounds.
|
void |
setXfermode(Xfermode mode) |
applyTheme, canApplyTheme, clearMutated, draw, getAlpha, getChangingConfigurations, getDrawable, getHotspotBounds, getOpacity, getOpticalInsets, getOutline, getPadding, inflate, invalidateDrawable, isStateful, mutate, onLayoutDirectionChanged, onLevelChange, onStateChange, scheduleDrawable, setAlpha, setColorFilter, setDrawable, setHotspot, setHotspotBounds, setTintList, setTintMode, setVisible, unscheduleDrawable
clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getBounds, getCallback, getColorFilter, getCurrent, getDirtyBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getState, getTransparentRegion, inflate, invalidateSelf, isAutoMirrored, isFilterBitmap, isProjected, isVisible, jumpToCurrentState, obtainAttributes, parseTintMode, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setFilterBitmap, setLayoutDirection, setLevel, setState, setTint, unscheduleSelf
public void setXfermode(Xfermode mode)
setXfermode
in class Drawable
public int getIntrinsicWidth()
Drawable
Intrinsic width is the width at which the drawable would like to be laid out, including any inherent padding. If the drawable has no intrinsic width, such as a solid color, this method returns -1.
getIntrinsicWidth
in class DrawableWrapper
public int getIntrinsicHeight()
Drawable
Intrinsic height is the height at which the drawable would like to be laid out, including any inherent padding. If the drawable has no intrinsic height, such as a solid color, this method returns -1.
getIntrinsicHeight
in class DrawableWrapper
protected void onBoundsChange(Rect bounds)
Drawable
onBoundsChange
in class DrawableWrapper
public com.android.systemui.statusbar.phone.LockscreenWallpaper.WallpaperDrawable.ConstantState getConstantState()
Drawable
Drawable.ConstantState
instance that holds the shared state of this Drawable.getConstantState
in class DrawableWrapper
Drawable.ConstantState
,
Drawable.mutate()