Getview parameter “convertview” not null on new “position” parameter

前端 未结 3 1171
花落未央
花落未央 2021-02-06 03:49

I\'m using an ArrayAdapter for a list of my own type of objects (only one type) and I give the user an option to create more items (thus creating more views for those items). At

3条回答
  •  走了就别回头了
    2021-02-06 04:20

    You need to call bindView() always. The idea or reuse is as following. If convertView is null, you create and initialize a new view. If convertView is not null, you take this view and convert it to be new view, meaning you call bindView() with convertView instance.

    Checkout this Javadoc for more details.

提交回复
热议问题