how to set an image on a particular position dynamically
<p>Basically i want to flip an image. Now all i want is to set an image on a particular position dynamically on the screen.The sample code is:</p>

<pre><code>ImageView im=new ImageView(MainActivity1.this);

int location[]={1,2} ;
v.getLocationOnScreen(location);
Toast.makeText(getApplicationContext(), "&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;"+location[0], 3000).show();
System.out.println("&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;"+location[0]);
v.setDrawingCacheEnabled(true);
v.buildDrawingCache();
bmp = v.getDrawingCache();
if(bmp.equals(null))
{
     Toast.makeText(getApplicationContext(), "No Image Selected!!!", 3000).show();
}
else
{
     r = r + 1;
     matrix.postRotate(360);
 matrix.postScale(-1.0f, 1.0f);
     mBitmap = Bitmap.createBitmap(bmp, 0, 0, 80,80, matrix, false);
 im.setImageBitmap(mBitmap);
}
</code></pre>
