title: create ImageView programatically and draw on canvas android
body: <p>How can I create an ImageView programmatically and draw on canvas in Android?</p>
  
  <p>I also saw <a href="https://stackoverflow.com/questions/29307102/android-place-imageview-on-top-">this post</a> of-canvas  and tried the below code:</p>
  
  <pre><code> ImageView img = new ImageView(HighScore.ctx);
      img.setImageResource(R.drawable.interactive);
      img.draw(canvas);
      img.bringToFront();
      img.invalidate();
      img.draw(canvas);
  </code></pre>
  
  <p>But the answer doesn't seem complete, it's not working. plz can anybody help me..</p>