Android翻页效果,电子书(21)
来源:未知 责任编辑:责任编辑 发表时间:2015-09-17 09:43 点击:次
this.mPageTurner = pageTurnerViewP1;
}
void setClipPath(Path clipPath) {
this.mClipPath = clipPath;
}
public void setCallback(Callback callback) {
this.mCallback = callback;
}
void drawBackPage(Canvas canvas) {
if (this.mCallback != null)
this.mCallback.onDrawBackPage(canvas);
}
void drawBackground(Canvas canvas) {
if (this.mCallback != null)
this.mCallback.onDrawBackground(canvas);
}
public void startPageTurn() {
if (this.mPageTurner != null)
this.mPageTurner.startPageTurn(0);
}
void onPageTurnFinished(Canvas canvas) {
this.mCallback.onPageTurnFinished(canvas);
this.mClipPath = null;
}
protected void dispatchDraw(Canvas canvas) {
if (this.mClipPath != null) {
canvas.save();
canvas.clipPath(this.mClipPath, Region.Op.INTERSECT);
}
super.dispatchDraw(canvas);
if (this.mClipPath != null)
canvas.restore();
}
public void setCorner(int corner) {
this.mCorner = corner;
}
public int getCorner() {
return this.mCorner;
}
public void setBackPage(Drawable backPage) {
this.mBackPage = backPage;
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>