title: Draw line with gradient
body: <p>I have multiple lines draw in different positions.
  For example:</p>
  
  <pre><code>canvas.drawLine(startXLine1 ,stopXLine1, startYLine1, stopYLine1, paint)
  canvas.drawLine(startXLine2 ,stopXLine2, startYLine2, stopYLine2, paint)
  </code></pre>
  
  <p>I want a gradient like this for each line:
  <img src="https://i.stack.imgur.com/tSuLr.jpg" alt="enter image description here"></p>
  
  <p>When I try this, I don't have this effect, but the gradient with this direction  blue(left) ---> white(right)
  Like this: <a href="http://media.24ways.org/2011/verou/1.png" rel="nofollow noreferrer">http://media.24ways.org/2011/verou/1.png</a></p>
  
  <pre><code>Shader shader = new LinearGradient(startXLine1, startYLine1, stopXLine1, stopYLine1, res.getColor(R.color.blue),  res.getColor(R.color.white), Shader.TileMode.CLAMP);
  
  paint.setShader(shader);
  </code></pre>
  
  <p>Someone can help me with this?</p>