Code example for SparseBooleanArray

Methods: getput

0
	} 
 
	@Override 
	public void toggleCheck(int position, long id) {
		final int key = (int) id;
		final boolean newValue = !mCheckedIds.get(key);
		mCheckedIds.put(key, newValue);
		notifyDataSetChanged(); 
	} 
 
	public void uncheck(long id) {
		final int key = (int) id;
		mCheckedIds.delete(key);
		notifyDataSetChanged(); 
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java