image view of an image in grid view
<p>I am  making an android application in which I have to rotate an image in grid view . I have written the following code:</p>

<pre><code> public boolean onTouch(View v, MotionEvent me) {

            .............

     int position = parent.pointToPosition(x, y);
    switch(me.getAction())
    {


    case MotionEvent.ACTION_DOWN :
        //int z = fPosition(x,y);
        sr = position;
        doRotation(v,position);

        //startAnimation(v);
        //Toast.makeText(GameActivity.this, "down "+position,Toast.LENGTH_SHORT).show();
        break;
    case MotionEvent.ACTION_UP :
        //popUp.dismiss();
        ds = position;
        images.cPositions(sr,ds);
        images.notifyDataSetChanged();
        //int z1 = fPosition(x,y);
    //Toast.makeText(GameActivity.this, "up " + position, Toast.LENGTH_SHORT).show();
        break;
    case MotionEvent.ACTION_MOVE :
        //Toast.makeText(GameActivity.this, "move", Toast.LENGTH_SHORT).show();
        break;
    }
    return true;
}


 void doRotation(View v, int position) {

    final ImageView im;
    final RotateAnimation rAnim;
    ViewGroup vg = (ViewGroup) findViewById(R.id.mlinear);

    rAnim = new RotateAnimation(0f,360, RotateAnimation.RELATIVE_TO_SELF, 0.5f, RotateAnimation.RELATIVE_TO_SELF, 0.5f);
    rAnim.setStartOffset(0);
    rAnim.setDuration(2000);
    rAnim.setFillAfter(true);
    rAnim.setFillEnabled(true);
    v.startAnimation(rAnim);
} 
</code></pre>

<p>I am on android 2.2(8 level) what its doing is its rotating whole grid view I want to rotate on of the image . Just want to know how to get the image view of an image in grid view..</p>
