List of usage examples for android.util SparseArray setValueAt
public void setValueAt(int index, E value)
0...size()-1
, sets a new value for the index
th key-value mapping that this SparseArray stores. From source file:Main.java
private static void clearSparseArray(SparseArray<?> spArray) { if (spArray != null) { int size = spArray.size(); for (int i = 0; i < size; i++) { spArray.setValueAt(i, null); }/*from w w w .ja v a 2 s . co m*/ } }