title: Add Image to layout on touch in android with respect to touch position
body: <p>Where ever i touch on the screen with respect to x y position i need to add one image on that particular position.
  I tried by implementing the ontouch listener but it is adding image to different position and many images are being appeared on many touch i want some thing like where ever i touch that same image should appear there
  Please Help i am new to android working on project in a compnay</p>
  
  <p>This is my activity code</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      final RelativeLayout rl = (RelativeLayout) findViewById(R.id.wwcontainer);
      //Set On TouchListner to the Layout
              rl.setOnTouchListener(new View.OnTouchListener() {
  
                  @Override
                  public boolean onTouch(View v, MotionEvent event) {
                      Log.i("OnTouch", "On Touch View Group....");
                      int x = (int) event.getX();
                      int y = (int) event.getY();
  
                       ImageView imageView = new ImageView(getApplicationContext());
                       imageView.setImageResource(R.drawable.icon);
                       imageView.setLayoutParams(new LayoutParams(x,y));
                       rl.addView(imageView);
                      return true;
                  }
              });
  }
  </code></pre>
  
  <p>I know about drag and drop i dont want drag and drop instead i need touch any where there image should appear wrt touch position please help me</p>