Encountered IndexOutOfBoundException while removing items from ListView in Android?

后端 未结 3 1324
囚心锁ツ
囚心锁ツ 2021-01-17 02:06

I have one simple_list_item_multiple_choice listview in my layout and i am trying to remove all the selected items from it. I know how to delete it but i am

3条回答
  •  野的像风
    2021-01-17 02:49

    From the look of it, you should change this

    for(int i = 0; i <= size; i++)
    

    to

    for(int i = 0; i < size; i++)
    

提交回复
热议问题