public interface IDrawingStrategy
限定符和类型 | 方法和说明 |
---|---|
void |
algorithm(android.graphics.Canvas canvas,
int childTotal,
int curChild,
ResInfo res,
DisplayInfo info)
根据提供的画布, 和可绘制的位置实现具体效果
|
void algorithm(android.graphics.Canvas canvas, int childTotal, int curChild, ResInfo res, DisplayInfo info)
canvas
- AvatarView.onDraw(Canvas)
中的画布childTotal
- 图片的总个数curChild
- 当前图片是第几张图片res
- 需要操作的资源info
- 每个内部元素应该摆放的位置信息类