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

前端 未结 3 1173
花落未央
花落未央 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:02

    When you have several types of views that should be recycled you have to tell the list view how many types you have got by implement the method

    @Override
        public int getViewTypeCount() {
            return 7;
        }
    

提交回复
热议问题