the fade effect and restore layers (optional) final Shader fade = scrollabilityCache.shader; paint.setShader(fade); canvas.drawRect(left, top, right, top , paint); public void draw(Canvas canvas) {
children dispatchDraw(canvas); // Step 5, draw the fade effect and restore layers (optional) final Shader fade = scrollabilityCache.shader; paint.setShader(fade); canvas.drawRect(left, top, right, top , paint);