how can i manually give the x,y of an image?
<p>i have overlayed 2 images over an camera view now i want to manually give the position of 2nd image?actually it shows the destinations so i have to manually decide where it should be placed how can i achieve this.
here is the code</p>

<p>controlInflater = LayoutInflater.from(getBaseContext());</p>

<pre><code>         View viewControl = controlInflater.inflate(R.layout.map, null);




         LayoutParams layoutParamsControl 
            = new LayoutParams(LayoutParams.FILL_PARENT, 
            LayoutParams.FILL_PARENT);


         this.addContentView(viewControl, layoutParamsControl);


         ImageView image= (ImageView) findViewById(R.id.test_image);


         controlInflater1 = LayoutInflater.from(getBaseContext());


         View viewControl1 = controlInflater1.inflate(R.layout.flag, null);
         LayoutParams layoutParamsControl1 
            = new LayoutParams(LayoutParams.FILL_PARENT, 
            LayoutParams.FILL_PARENT);

         RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT,      RelativeLayout.LayoutParams.WRAP_CONTENT);

         layoutParams.rightMargin=400;


         this.addContentView(viewControl1, layoutParams);


         ImageView image2=new ImageView(this);
         image2.setImageResource(R.drawable.android);
</code></pre>

<p>Thanks in advance.</p>
