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(); 
	} 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE