ListView contains Views that you access by calling getChildAt(). getItemAtPosition() returns an item from the Adapter. An adapter contains data, not Views.
On Thu, Jan 5, 2012 at 11:54 AM, John Davis <[email protected]> wrote: > OMG, seriously, the listView class does not contain a list of views? > Get out of here, if that was not the case, it would be called somthing > else. Its a listView. Its a bug. Geez. > >> >> Yes, it is a bug in your code. You are getting a ClassCastException >> now, because getItemAtPosition() is not returning a View. >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> Warescription: Three Android Books, Plus Updates, One Low Price! >> >> -- >> 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 > > > > -- > John F. Davis > > 独树一帜 > > -- > 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 -- Romain Guy Android framework engineer [email protected] -- 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

