Ejemplo n.º 1
0
  /**
   * draw bottom/right half
   *
   * @param canvas
   */
  private void drawNextHalf(Canvas canvas) {
    final View v = viewForPage(getCurrentPageCeil());

    canvas.save();
    canvas.clipRect(isFlippingVertically() ? mBottomRect : mRightRect);

    // if the view does not exist, skip drawing it
    if (v != null) {
      setDrawWithLayer(v, true);
      v.draw(canvas);
    }

    drawNextShadow(canvas);
    canvas.restore();
  }