title: Object allocation during draw/layout?
body: <p>I get 3 warning for object allocation during draw/layout</p>
  
  <pre><code>super.onDraw(canvas);
  canvas.drawColor(Color.WHITE);
  Paint textPaint = new Paint();
  textPaint.setARGB(50,100,100,250);
  textPaint.setTextAlign(Align.CENTER);
  textPaint.setTextSize(50);
  textPaint.setTypeface(font);
  canvas.drawText("Logan is awesom",canvas.getWidth()/2,200,textPaint);
  canvas.drawBitmap(pBall, (canvas.getWidth()/2), changingY, null);
  if (changingY &lt;canvas.getHeight()){
  changingY += 10;
  }else{
  changingY=0;
  }
  Rect middleRect = new Rect();
  middleRect.set(0, 400, canvas.getWidth(), 550);
  Paint ourBlue = new Paint();
  ourBlue.setColor(Color.BLUE);
  canvas.drawRect(middleRect, ourBlue);
  </code></pre>
  
  <p>I get an error on new Rect(); 
  and on both new Paint();</p>
  
  <p>The exact error is avoid object allocation during draw/layout operations (prelocate and reuse instead)</p>