title: Android: Draw a view on canvas
body: <p>I have a view inflated, I can draw it on canvas, but can't seem to position it properly.</p>
  
  <pre><code>LayoutInflater li = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
  View v = li.inflate(R.layout.fix_this_recommendation, null);
  v.measure(MeasureSpec.getSize(v.getMeasuredWidth()), MeasureSpec.getSize(v.getMeasuredHeight()));
  v.layout(400, 400, 400, 400);
  v.draw(canvas);
  </code></pre>
  
  <p>But the view is always at the top left corner. Anyone know why?</p>