title: Set Spinner based on the other Spinner
body: <p>I'm making an App for android. I have 2 <code>spinner</code>s, and when I select one item in my 1st spinner(<code>simpleSpinner</code>) it ofc needs to show it(I have done that) but when I select one from my 2nd spinner(<code>multiSpinner</code>) I want my <code>simpleSpinner</code> to go back to the first item in the spinner. And the other way around, when I select one in my <code>simpleSpinner</code> I want my <code>multiSpinner</code> to show the first item in my <code>simpleSpinner</code>. How do I do that?</p>
  
  <pre><code> final ArrayAdapter&lt;String&gt; ar1 = new ArrayAdapter&lt;String&gt;(this,
                  R.layout.my_spinner, arrSimple);
          final ArrayAdapter&lt;String&gt; ar2 = new ArrayAdapter&lt;String&gt;(this,
                  R.layout.my_spinner, arrMulti);
  
          spSimple.setAdapter(ar1);
          spMulti.setAdapter(ar2);
  
          AdapterView.OnItemSelectedListener simpleListen = new AdapterView.OnItemSelectedListener() {
              @Override
              public void onItemSelected(AdapterView&lt;?&gt; parent, View view,
                      int position, long id) {
                  String simpleText = spSimple.getSelectedItem().toString();
  
                  if("Rouge".equals(simpleText)){
                      spMulti.setSelection(0);
                  }
              }
  
              @Override
              public void onNothingSelected(AdapterView&lt;?&gt; parent) {
  
              }
          };
  
          AdapterView.OnItemSelectedListener multiListen = new AdapterView.OnItemSelectedListener() {
              @Override
              public void onItemSelected(AdapterView&lt;?&gt; parent, View view,
                      int position, long id) {
                  String multiText = spMulti.getSelectedItem().toString();
  
                  if("Plein".equals(multiText)){
                      spSimple.setSelection(0);
                  }
              }
  
              @Override
              public void onNothingSelected(AdapterView&lt;?&gt; parent) {
  
              }
          };
      spSimple.setOnItemSelectedListener(simpleListen);
      spMulti.setOnItemSelectedListener(multiListen);
  </code></pre>
  
  <p>The code works now! Thanks to @BlackPanther</p>