title: Draw shadow on rectagle in java using android.graphics.Paint
body: <p>I am trying something that I assumed to be very simple: drawing a rectangle with a drop-shadow.</p>
  
  <p>For text it is simple:</p>
  
  <pre><code>private void drawText() {
      Graphics g = game.getGraphics();
      paint.setColor(Color.rgb(255, 255, 255));
      paint.setShadowLayer(5, 1, 1, Color.rgb(210, 210, 210));
      g.drawString("Sample text", 640, 300, paint);
  }
  </code></pre>
  
  <p>But how to do the same for a rectangle? <code>g.drawRect</code> does not include a reference to "paint"...</p>