Dear SreeHari,
      Sorry for the delay in getting back to you, i have limited internet
acess.
      I have already tried this piece of code. It works in case of imageview
and all
      but not in case of inflated view from RelativeLayout. But i am
interested in the second one.

Thanks,
Ajith

On Wed, Mar 3, 2010 at 4:19 PM, SREEHARI
<sreehari.madhusooda...@wipro.com>wrote:

>
> Did u try setOnItemClickListener??
>
> GridView gridView;
> gridView.setOnItemClickListener(new OnItemClickListener() {
>
>      public void onItemClick(AdapterView<?> parent, View v, int
> position, long id) {
>
>                              //What all things to do on clicking the
> item;
>                  }
>            });
>      }
>
> On Mar 3, 10:06 am, Joseph Sebastian
> <joseph.sebastian.andr...@gmail.com> wrote:
> > Dear friends,
> >      I am facing a problem with the onclicklistener in GridView. I am
> > creating a folder browser for my ImageViewer.I want to create a custom
> > folder icon that is formed from 4 bitmaps of which 2 are of the any
> > two images in the  folder. So i created an "EfficientAdapter" that
> > extends a baseadapter. In efficient adapter getView, i am loading the
> > required images and creating the view. I have made the folder icon as
> > a xml and will only load corresponding bitmaps in the getView. so i
> > use layoutinflator to get the folder icon as a view and get individual
> > bitmaps and load images to it.Now the problem i am facing is that my
> > gridview does not seem to take Clicklistener. If i use a simple
> > bitmap, instead of a layout as an element of gridview, then it accepts
> > the clicks, but if i use the layoutinflator, then it does not.Please
> > let me know if anyone has come across any similar issue. Thanks in
> > advance,
> >
> > Joseph
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to