On Fri, Oct 5, 2012 at 8:29 AM, NikDmit <[email protected]> wrote:
> Is it a kind
> of library bug or something is really wrong with my code bellow?

Since view recycling has worked for all Android versions, for
thousands upon thousands of developers, for over four years, it is
likely to be something with your code.

There are countless code samples to work from for recycling. The
easiest thing is to not manage the recycling yourself, but to let your
superclass handle it, if you are extending something like
ArrayAdapter:

https://github.com/commonsguy/cw-omnibus/tree/master/Selection/Dynamic

The only reason why convertView will not have your desired widget is
if, in some previous getView() call, you returned a View that did not
contain that widget in the first place.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.2 Available!

-- 
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

Reply via email to