How to Remove items from spinner

After i put code with add button i thought i copy and just change for remove it was working but not like it should. Because it was only remove from list when i wrote exist item in editText. So i modify  it to this:

arrayadapter.remove((String)SPINNER.getSelectedItem());
Advertisements

How to add new items to spinner

This view show how adapter working. So we have ArrayList than ArrayAdapter and textView where we see the result. Then we put add button which take text from editText and put it to ArrayList.