On Mon, Jul 12, 2010 at 4:25 PM, dadaowuwei <[email protected]> wrote: > in hello-gridview sample code there is a method getitem(position) in > the class of image adapter which returns null for the sample example. > However, this method is important and is supposed to return the > corresponding data item of the imageadapter. > For example the imageadapter could generate a series of customized > imageviews by magically calling the getview method.
No, it would "generate a series of customized imageviews by magically" *implementing* getView(). > How could we implement the getitem(position) method under this case to > help us gain access to these customized imageviews? While this excerpt from one of my books is focused on ListView, the concept is the same for GridView: http://commonsware.com/Android/excerpt.pdf -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

