Android翻页效果,电子书(17)
来源:未知 责任编辑:责任编辑 发表时间:2015-09-17 09:43 点击:次
xShift = width - 2.0F * this.mPivotX;
xRotate = this.mPivotX;
}
if ((this.mCorner & 0x2) != 0) {
yRotate = 0.0F;
}
canvas.translate(this.mOuterOffsetX + xShift, this.mOuterOffsetY);
canvas.rotate(this.mRotation, xRotate, yRotate);
//画原本的背面
if (this.mBackPage != null) {
this.mBackPage.setBounds(0, 0, this.mChildRect.right, this.mChildRect.bottom);
this.mBackPage.draw(canvas);
}
//画回调函数中的画背面
if (this.mPage != null) {
Log.v("log2 drawBackPage2:", "drawing back page");
this.mPage.drawBackPage(canvas);
}
canvas.restore();
canvas.save();
// canvas.setDrawFilter(new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG));
// int[] colors={Color.BLACK,Color.GRAY,Color.BLACK};
// LinearGradient grad = new LinearGradient(
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>