Code example for ArrayAdapter

Methods: remove

0
			Adapter adapter = getAdapter();
			if (adapter != null && adapter instanceof ArrayAdapter) {
				ArrayAdapter<Object> arrayAdapter = (ArrayAdapter<Object>) adapter;
				Object item = adapter.getItem(which);
 
				arrayAdapter.remove(item);
			} 
		} 
	} 
 
	public void setSortMode(boolean sortMode) {
		this.sortMode = sortMode;
	} 
 
	public boolean isSortMode() { 
		return sortMode;
	} 
} 
Connect your IDE to all the code out there  Get Codota for Java