getView() will be called many times, not necessarily only the number of times you might expect or in the order you expect. Please just make your getView() implementation be efficient and let Android call getView() as it sees fit.
On Sat, Jul 16, 2011 at 3:56 AM, juliagrig <[email protected]> wrote: > Hi all, > > I have a listview in my app and a SimpleCursor Adapter in a different > class. In getView method I tried to set properties fom the text view > of each list item. > It works fine, but I have a log.i(",") message in the end of the > getView() method and I see that this method run 3 times. > So , I see in the logat > > 07-16 07:48:58.401: INFO/(341): GetView done > 07-16 07:48:58.421: INFO/(341): GetView done > 07-16 07:48:58.541: INFO/(341): GetView done > > Why is this happening? > > Thanks in advance. > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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

