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
<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en