似乎我找到了解决方案。我没有正确注意到该
keyAt(index)功能。
因此,我将使用以下内容:
for(int i = 0; i < sparseArray.size(); i++) { int key = sparseArray.keyAt(i); // get the object by the key. Object obj = sparseArray.get(key);}
似乎我找到了解决方案。我没有正确注意到该
keyAt(index)功能。
因此,我将使用以下内容:
for(int i = 0; i < sparseArray.size(); i++) { int key = sparseArray.keyAt(i); // get the object by the key. Object obj = sparseArray.get(key);}