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