@ Override public view getview (INT position, view convertview, viewgroup parent) {final textview V; If (convertview = NULL) {v = (textview) minflater. inflate (R. layout. action_list_item, parent, false); convertview = V;} else {v = (textview) convertview;} v. settext (mtitles [position]); Final drawable icon = micons. getdrawable (position); icon. setbounds (0, 0, icon. getintrinsicwidth (), icon. getintrinsicheight (); V. settext (mtitles [position]); V. setcompounddrawables (icon, null); Return convertview ;}
The above code snippet was encountered when I was learning a demo. action_list_item.xml only contains one textview control. The problem I am struggling with is the second half of the Code, that is, after determining whether convertview is null, the actual operation is the V Control, V. setxxx or something, while convertview does not assign a value for any operation, but why is convertview returned? The operation results for V are all reflected in convertview. Why?
Please kindly advise!