Android

getView: convertView

tomato13 2011. 8. 31. 09:54

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/view/List14.html


// When convertView is not null, we can reuse it directly, there is no need

            // to reinflate it. We only inflate a new View when the convertView supplied

            // by ListView is null.


즉, convertView가 null이 아닐 때에는 다시 inflate를 하지 않아도 된다. 하지만 sub view에 대한 속성값 처리는 해주어야 한다.