Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I saw getView implementations that used convertView parameter directly:

if(convertView!=null)
    ...
return convertView

Another implementations call super.getView:

View view = super.getView( position, convertView, parent );
if(view!=null)
    ...
return view

My question is, What is the right method?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
292 views
Welcome To Ask or Share your Answers For Others

1 Answer

the super.getView( position, convertView, parent ); is unsefull since the super does nothing.

getView belongs to the Adapter interface.

here you can find the code


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...