how to zoom selected image in gallery in android
<p>Hi friends
I have gallery in my application .In that gallery I have lof of images can anybody tell how to zoom selected image in gallery in android give code?</p>

<p>I tried with this code but its not working</p>

<pre><code> gallery.setOnItemClickListener(new OnItemClickListener() 
                    {
                        public void onItemClick(AdapterView parent, 
                        View v, int position, long id) 
                        {

            if(v!=null)
                {
                if(position&gt;0){
                View previousView=parent.findViewById(position-1);
                if(previousView!=null)
                {
                previousView.setLayoutParams(new Gallery.LayoutParams(100, 120)); 
                }
                }
                Toast.makeText(getBaseContext(), 
                        "pic" + (position + 1) + " selected", 
                        Toast.LENGTH_SHORT).show();
                Animation grow = AnimationUtils.loadAnimation(GalleryActivity.this, R.anim.grow);      
                    v.startAnimation(grow);      
                v.setLayoutParams(new Gallery.LayoutParams(170, 150)); 
                }
</code></pre>

<p>Thanks</p>
