Demand is that the first get a data network request and a key, the data preserved as expandablelistview parent list, and then I in this callback request method to get the key to request (for the key of the figures, is to let I can access the network again, to get the item), after getting the two data, used to load on the child list, there is a problem now is that when I first start page, a child list, shows the results of an yes right, but when I quit this activity returned, the parent list did not change, but the child list change, the original parent a child ran into the list, the other parent list go to, the other parent list, such as the parent list two children ran to the parent list a here, is similar to this kind of situation, return to exit the application without this kind of situation, condition as long as a turn the activity, can appear this kind of circumstance, and know the solution??
CodePudding user response:
Should be a listview list out data, it is recommended that the print to check the problem, is added in the adapter or using RecyclerView instead of listview load data,
CodePudding user response:
See you add data and refresh data if you have any questions, you can print a log or a breakpoint
CodePudding user response:
Problem is solved, adaptet,