android - ViewHolder worth it when ListItem consists of one TextView? -
whenever have lists 1 textview wonder whether still worth using viewholder pattern?
if(convertview == null){ //convertview = inflate view } ((textview)convertview).settext(getitem(position).x); would gain performance on using viewholder here? me seems whole point of holder cache .findviewbyid(r.id...) in case dont need find views since base view 1 im looking for.
its useful if have call findviewbyid() every time. in case need not search view, so, not required.
Comments
Post a Comment