title: Using canvas and bitmap in Android , how to get this image?
body: <p>I am new in android. I am trying to draw this image(match statistic)
  <a href="https://i.stack.imgur.com/YAjd1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/YAjd1.png" alt="enter image description here"></a> and fill the image with color with 10% to 100% . I tried this much and  this is image<a href="https://i.stack.imgur.com/g11ny.png" rel="noreferrer"><img src="https://i.stack.imgur.com/g11ny.png" alt="enter image description here"></a> </p>
  
  <p>this is the code </p>
  
  <pre><code>public class DrawView extends View {
  Paint paint = new Paint();
  
  public DrawView(Context context) {
      super(context);
  }
  
  @Override
  public void onDraw(Canvas canvas) {
      paint.setColor(Color.BLACK);
      paint.setStrokeWidth(3);
      canvas.drawRect(30, 30, 100, 100, paint);
      paint.setStrokeWidth(0);
      paint.setColor(Color.GRAY);
      canvas.drawRect(33, 60, 97, 97, paint);
      paint.setColor(Color.WHITE);
      canvas.drawRect(33, 33, 97, 60, paint);
  
  }
  </code></pre>
  
  <p>Any Suggestion will be much helpful for  me.
  Thanks in advance.</p>