title: Android canvas draw rectangle
body: <p>how to draw empty rectangle with etc. borderWidth=3 and borderColor=black and part within rectangle don't have content or color. Which function in Canvas to use</p>
  
  <pre><code>void drawRect(float left, float top, float right, float bottom, Paint paint)
  
  void drawRect(RectF rect, Paint paint)
  
  void drawRect(Rect r, Paint paint)
  </code></pre>
  
  <p>Thanks.</p>
  
  <p>I try this example</p>
  
  <pre><code>Paint myPaint = new Paint();
  myPaint.setColor(Color.rgb(0, 0, 0));
  myPaint.setStrokeWidth(10);
  c.drawRect(100, 100, 200, 200, myPaint);
  </code></pre>
  
  <p>It draws rectangle and fill it with black color but I want just "frame" around
  like this image:     </p>
  
  <p><img src="https://i.stack.imgur.com/2aUXE.png" alt="enter image description here"></p>