Yes, that's because it's a non-static inner class, which is a Java feature. Can be very useful at times :)
-- Kostya Vasilyev -- http://kmansoft.wordpress.com 14.01.2011 2:17 пользователь "Tobiah" <[email protected]> написал: > On 01/13/2011 02:56 PM, Kostya Vasilyev wrote: >> It's the same id as returned by the adapter's getItemId, but I'm not sure ArrayAdapter returns anything useful there. >> >> I'd actually recommend you implement your own adapter, subclassing from BaseAdapter. >> >> It's not that difficult, there are plenty of samples and tutorials. And yet the stuff you can learn this way, getting insight into >> listview/adapter interaction, can be quite useful. > > I didn't realize that my onItemClick handler would have access to the members in the class in > which it was defined. I just stuffed a list of Id values in a String array and index that > with the position parameter I'm getting. It's not as pretty as I'd like, and I'm keeping > and extra list around that has to be updated when the ListView is updated, but it works. > > Thanks for the help. > > Tobiah > > -- > 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]<android-developers%[email protected]> > 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 [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

