title: Canvas.drawArc() doesn't draw anything
body: <p>I'm trying to draw an arc to overlay on top of some part of an existing circle. Both of my circles draw perfectly fine, but neither my drawArc() call or my drawRect() call seem to do anything. The app does not crash, there is no exception. It just fails silently.</p>
  
  <p>onDraw() code:</p>
  
  <pre><code>@Override
  protected void onDraw(Canvas canvas) {
      int width = getWidth();
      int height = getHeight();
  
      int size = (width &gt; height) ? height : width;
  
      float cx = width / 2;
      float cy = height / 2;
      float radius = size / 2;
  
      float left = cx - radius;
      float right = cx + radius;
      float top = cy - radius;
      float bottom = cy + radius;
  
      RectF rect = new RectF(left, top, right, bottom);
      RectF rect2 = new RectF(canvas.getClipBounds());
  
      Log.d("MyTag", "Left: " + rect.left + "Right: " + rect.right + "Top: " + rect.top + "Bottom: " + rect.bottom);
      Log.d("MyTag", "Left: " + rect2.left + "Right: " + rect2.right + "Top: " + rect2.top + "Bottom: "
              + rect2.bottom);
  
      canvas.drawCircle(cx, cy, radius, circleRing);//Works
      canvas.drawCircle(cx, cy, radius - barWidth, innerColor);//Works
      canvas.drawArc(rect, 0, angle, true, circleColor);//Doesn't work
      canvas.drawRect(rect, circleColor);//Doesn't work
  
      super.onDraw(canvas);
  }
  </code></pre>
  
  <p>I have confirmed that my <code>circleColor</code> Paint is properly setup, and that <code>angle</code> is a valid value for an arc.</p>
  
  <p>My paints are setup as follows in a {} block so that all constructors use it:</p>
  
  <pre><code>{
      circleColor = new Paint();
      innerColor = new Paint();
      circleRing = new Paint();
  
      circleColor.setColor(color.holo_blue_light);
      innerColor.setColor(Color.BLACK);
      circleRing.setColor(Color.GRAY);
  
      circleColor.setAntiAlias(true);
      innerColor.setAntiAlias(true);
      circleRing.setAntiAlias(true);
  
      circleColor.setStrokeWidth(50);
      innerColor.setStrokeWidth(5);
      circleRing.setStrokeWidth(5);
  
      circleColor.setStyle(Paint.Style.FILL);
  }
  </code></pre>
  
  <p>What I have tried:</p>
  
  <ul>
  <li>Hardcoding coordinates</li>
  <li>Using the paints used by the circles</li>
  <li>Having only the drawArc() call present and commenting out the rest of the draws</li>
  <li>Disabling hardware acceleration</li>
  </ul>
  
  <p>The Logcat shows that my RectF has valid points, just top and bottom scaled to form a square:</p>
  
  <pre><code>01-25 13:33:39.877: D/MyTag(21612): Left: 0.0 Right: 720.0 Top: 159.0 Bottom: 879.0 //Mine
  01-25 13:33:39.877: D/MyTag(21612): Left: 0.0 Right: 720.0 Top: 0.0 Bottom: 1038.0 //Canvas'
  </code></pre>
  
  <p>Does anybody know what could be causing this?</p>