title: Dynamic array in spinner issue
body: <p>Scenario : I have 2 spinners with one adapter and global array. When any one select an item from one spinner then that item will delete from global array.Problem is when an item suppose select with 0 index again after deleting that item from global array and another item at acquire position with 0 index . If I will select that 0 index changed item then it will not select other than all items will select. </p>
  
  <p>So can any one explain or suggest what i want to do in this scenario.</p>
  
  <pre><code>     List&lt;String&gt; spinnerArray =  new ArrayList&lt;String&gt;();
  HashMap&lt;String, String&gt; index_val = new HashMap&lt;String, String&gt;();
              ArrayAdapter&lt;String&gt; adapter_left;
              spinnerArray.add("None");
                  spinnerArray.add("Task");
                  spinnerArray.add("Priority");
                  spinnerArray.add("Deadline");
                  spinnerArray.add("Assigned to");
                  spinnerArray.add("Created by");
                  spinnerArray.add("Closed by");
                  spinnerArray.add("Category");
              ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(activity, R.layout.spinner_selected_item, noneArray);
                  adapter.setDropDownViewResource(R.layout.spinner_dropdown_item);
  
                  adapter_left = new ArrayAdapter&lt;String&gt;(activity, R.layout.spinner_selected_item_left, spinnerArray);
  
                  adapter_left.setDropDownViewResource(R.layout.spinner_dropdown_item);
      task_spinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
                  @Override
                  public void onItemSelected(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
  
                      if(!index_val.get("1").equalsIgnoreCase("None")){
                          spinnerArray.add(index_val.get("1"));
                      }
                      current_selected_val = adapterView.getItemAtPosition(i).toString();
                      index_val.put("1", current_selected_val);
  
                      if(!current_selected_val.equalsIgnoreCase("none")) {
                          spinnerArray.remove(spinnerArray.indexOf(current_selected_val));
  
                      }
  
                  }
  
                  @Override
                  public void onNothingSelected(AdapterView&lt;?&gt; adapterView) {
  
                  }
  
              });
  </code></pre>