Android翻页效果,电子书(5)
来源:未知 责任编辑:责任编辑 发表时间:2015-09-17 09:43 点击:次
}
protected void dispatchDraw(Canvas canvas) {
Log.v("log dispatchDraw:", "drawing back page"+mPageTurning);
// if ((this.mPageTurning) && (this.mPage != null) && (computePageTurn())) {
if ((computePageTurn())&& (this.mPageTurning) && (this.mPage != null) ) {
this.mPage.setClipPath(this.mForegroundPath);
}
super.dispatchDraw(canvas);
if (this.mPageTurning) {
drawBackground(canvas);
drawBackPage(canvas);
if (!updateTimeStep()) {
this.mHandler.removeMessages(1);
if (this.mPage != null) {
this.mPage.onPageTurnFinished(canvas);
}
this.mPageTurning = false;
this.mStepping = false;
invalidate();
}
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>