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에 대한 속성값 처리는 해주어야 한다.

'Android' 카테고리의 다른 글

animation 기초  (0) 2011.09.07
keyboard 나타날때 UI를 위로 이동시키기 [커서 부분을 밀고 올라감]  (0) 2011.09.07
android:layout_weight  (0) 2011.08.24
Android disable screen timeout while app is running  (0) 2011.08.19
ViewStub  (0) 2011.06.02