Android翻页效果,电子书(16)
来源:未知 责任编辑:责任编辑 发表时间:2015-09-17 09:43 点击:次
}
// add drop shadow start test
if(mTimeStep<=29&&ex>2){
LinearGradient grad = new LinearGradient(
ex,ey,ex+(dx-ex)/4,ey+(dy-ey)/4,R.color.gray3,Color.TRANSPARENT,Shader.TileMode.CLAMP);
Paint p=new Paint();
p.setShader(grad);
// p.setAlpha(120);
canvas.drawPath(this.mBackgroundPath,p);
//end test
}
canvas.restore();
}
private void drawBackPage(Canvas canvas) {
float width = this.mChildRect.right;
float height = this.mChildRect.bottom;
canvas.save();
// canvas.setDrawFilter(new PaintFlagsDrawFilter(0, Paint.ANTI_ALIAS_FLAG|Paint.FILTER_BITMAP_FLAG));
canvas.clipPath(this.mBackPagePath, Region.Op.INTERSECT);
float xShift = 2.0F * this.mPivotX - width;
float xRotate = width - this.mPivotX;
float yRotate = height;
if ((this.mCorner & 0x1) != 0) {
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>