Just the answer i was looking for. many thanks, Mark! On Apr 10, 5:09 pm, Mark Murphy <mmur...@commonsware.com> wrote: > On Sun, Apr 10, 2011 at 9:00 AM, Jumana <jumanamaj...@gmail.com> wrote: > > In "The Busy Coder's Guide to Android Development", the GridView has > > been implemented using onSelect listener. But when i run the > > application on the emulator, nothing seems to happen when i click on a > > grid item. > > It's not supposed to. > > > Alternatively when i implemented onClick listener and > > callback, I was able to capture the onclick event. > > Can anybody please explain what the difference between the two events > > are? thanks! > > Selection is something done using the pointing device (D-pad, > trackball, arrow keys, etc.) where available. For example, on a device > with a D-pad, pressing the up/down/left/right portions of the D-pad on > a GridView will change the selection. > > Clicking is something done by the touchscreen, or by the pointing > device's "main" button. For example, on a device with a D-pad, > pressing the center button will be a click of whatever item was > selected using the up/down/left/right portions of the D-pad. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy > > Android Training in Oslo:http://bit.ly/fjBo24
-- 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