Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android listview在emulator中关闭和打开时会将项目加倍_Android_Listview - Fatal编程技术网

Android listview在emulator中关闭和打开时会将项目加倍

Android listview在emulator中关闭和打开时会将项目加倍,android,listview,Android,Listview,当我在emulator中关闭并打开应用程序时,listview中的元素每次都会加倍。。。 在调试期间,我检查了列表的元素计数是否与预期的一样。 但是在视图中它是加倍的?您可以发布您的代码吗?我添加了两次,但在添加之前的调试检查中,您可以发布您的代码吗?我添加了两次,但在添加之前的调试检查中

当我在emulator中关闭并打开应用程序时,listview中的元素每次都会加倍。。。 在调试期间,我检查了列表的元素计数是否与预期的一样。
但是在视图中它是加倍的?

您可以发布您的代码吗?我添加了两次,但在添加之前的调试检查中,您可以发布您的代码吗?我添加了两次,但在添加之前的调试检查中