public abstract static class TouchEffectDrawable.ClipFactory extends Object
| 构造器和说明 |
|---|
ClipFactory() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract boolean |
clip(Canvas canvas)
Returns the Canvas clip to be drawn when a Drawable is drawn.
|
abstract void |
resize(int width,
int height)
The dimensions of the Drawable are passed because they may be needed to
adjust how the Canvas.clip.. is configured for drawing.
|
public abstract void resize(int width,
int height)
width - the width of the Drawable being drawnheight - the height of the Drawable being drawnpublic abstract boolean clip(Canvas canvas)
canvas - The drawable Canvas