Android: getView() called twice in custom adapter

前端 未结 4 1582
渐次进展
渐次进展 2021-02-13 04:53

I\'m setting a custom SimpleCursorAdapter to a ListView. For some reason FriendAdapter\'s getView() is called twice for every item in the DB. After some investigation (I have no

4条回答
  •  春和景丽
    2021-02-13 05:19

    This is normal and can happen when you have a listview with height=wrap_content (among others):

    Look at the last post: http://groups.google.com/group/android-developers/browse_thread/thread/4c4aedde22fe4594

提交回复
热议问题