Ah, makes sense. Thanks. On Thu, Mar 3, 2011 at 1:09 PM, Streets Of Boston <[email protected]>wrote:
> The 'convertView' is one of the CheckBoxItemViews you created when > 'convertView == null': > When returning a new CheckBoxItemView, it will be used for the given > 'position' and it will be re-used if the CheckBoxItemView scrolls out of > sight later. > > When it scrolls out of sight, it can be re-used. When another list-item on > a larger 'position' needs to be shown, convertView will not be null. It will > be one of the CheckBoxItemViews you used earlier which you now can use again > for this larger 'position'. > > E.g. If your list, given its height, can show (entirely or just partially) > 7 CheckBoxItemViews, convertView is null only 7 times and you'll be creating > no more than 7 new CheckBoxItemViews. > > When convertView is not null, you are re-using an existing one and you just > need to replace its data (name, text, icon) with new data based on its new > 'position'. > > -- > 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 > -- 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

