Home > Mobile >  Topic: Android studio student list multiple cases, delete all the selected students finished code on
Topic: Android studio student list multiple cases, delete all the selected students finished code on

Time:09-18

Topic: Android studio student list alternative cases, delete all the selected students finished code

On the virtual machine as shown in the figure below, request to delete multiple student



But the generation in the diagram below the code inside the red box, delete, students, it is not 100 people, a for loop will go wrong


So what to change in the red box code, or how to realize the student list multiple cases, delete all the selected students finished code? 有哪位大神能帮我解答一下呀,十分感谢

CodePudding user response:

See along while, seems to be deleted array length change?
Simple, put want to delete the ID of the individual in a
in the array is to be deletedThen for each array is to be deleted, than your original data of the ID, the ID is to remove the data from the original data and consistently continue continue cycle
Don't know whether I understand your meaning, also don't know if I have said I see what I mean

CodePudding user response:

From the forward circulation after the deletion

CodePudding user response:

Box, as if not delete the code,,,,

CodePudding user response:

Entering for the first time with this step by step you add 100 list_01 to display interface, delete the position in to delete a deposit of a collection of list_02, click delete the list_01 to use your cycle out list_02 contained within the location, position the same save out, cycle time is not a fixed value, 100, is to use list_01. The size () go to cycle, after using all list_01 have to do is to do the same operation
  • Related