|
|
@ -219,19 +219,23 @@ class SimulationPageDelegate(pageView: PageView) : HorizontalPageDelegate(pageVi |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onDraw(canvas: Canvas) { |
|
|
|
override fun onDraw(canvas: Canvas) { |
|
|
|
if (mDirection === Direction.NEXT) { |
|
|
|
when (mDirection) { |
|
|
|
|
|
|
|
Direction.NEXT -> { |
|
|
|
calcPoints() |
|
|
|
calcPoints() |
|
|
|
drawCurrentPageArea(canvas, curBitmap) |
|
|
|
drawCurrentPageArea(canvas, curBitmap) |
|
|
|
drawNextPageAreaAndShadow(canvas, nextBitmap) |
|
|
|
drawNextPageAreaAndShadow(canvas, nextBitmap) |
|
|
|
drawCurrentPageShadow(canvas) |
|
|
|
drawCurrentPageShadow(canvas) |
|
|
|
drawCurrentBackArea(canvas, curBitmap) |
|
|
|
drawCurrentBackArea(canvas, curBitmap) |
|
|
|
} else { |
|
|
|
} |
|
|
|
|
|
|
|
Direction.PREV -> { |
|
|
|
calcPoints() |
|
|
|
calcPoints() |
|
|
|
drawCurrentPageArea(canvas, prevBitmap) |
|
|
|
drawCurrentPageArea(canvas, prevBitmap) |
|
|
|
drawNextPageAreaAndShadow(canvas, curBitmap) |
|
|
|
drawNextPageAreaAndShadow(canvas, curBitmap) |
|
|
|
drawCurrentPageShadow(canvas) |
|
|
|
drawCurrentPageShadow(canvas) |
|
|
|
drawCurrentBackArea(canvas, prevBitmap) |
|
|
|
drawCurrentBackArea(canvas, prevBitmap) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
else -> Unit |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|