Android翻页效果,电子书(15)
来源:未知 责任编辑:责任编辑 发表时间:2015-09-17 09:43 点击:次
this.mBackPagePath.lineTo(this.mOuterOffsetX + x1, this.mOuterOffsetY + y1);
this.mBackgroundPath.moveTo(this.mOuterOffsetX + x1, this.mOuterOffsetY + y1);
this.mBackgroundPath.lineTo(this.mOuterOffsetX + x0, this.mOuterOffsetY + pageTurnCorner.y);
this.mBackgroundPath.lineTo(this.mOuterOffsetX + pageTurnCorner.x, this.mOuterOffsetY + pageTurnCorner.y);
this.mBackgroundPath.lineTo(this.mOuterOffsetX + pageTurnCorner.x, this.mOuterOffsetY + oppositeCorner.y);
this.mBackgroundPath.lineTo(this.mOuterOffsetX + x1, this.mOuterOffsetY + y1);
return page_slope;
}
private void drawBackground(Canvas canvas) {
canvas.save();
// canvas.setDrawFilter(new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG));
canvas.clipPath(this.mBackgroundPath, Region.Op.INTERSECT);
canvas.translate(this.mOuterOffsetX, this.mOuterOffsetY);
if (this.mPageBackground != null) {
this.mPageBackground.setBounds(0, 0, this.mChildRect.right, this.mChildRect.bottom);
this.mPageBackground.draw(canvas);
}
if (this.mPage != null) {
this.mPage.drawBackground(canvas);
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>