title: Spinner Scroll Selected Value
body: <p>RecyclerView not saving Spinner values.</p>
  
  <p>I have tried available examples all on stackoverflow, I could not find a working solution.</p>
  
  <p>Please find my code of my RecyclerView Below:</p>
  
  <pre><code>ArrayAdapter&lt;CharSequence&gt; countryAdapter = ArrayAdapter.createFromResource(context, R.array.spinnerlist, android.R.layout.simple_spinner_item);
              countryAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
              valueselected.setAdapter(countryAdapter);
  
              valueselected.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
                  @Override
                  public void onItemSelected(AdapterView&lt;?&gt; adapterView, View view, int i, long l) {
                      valueselected.setSelection(i, true);
                  }
                  @Override
                  public void onNothingSelected(AdapterView&lt;?&gt; parent) {
                  }
              });
              valueselected.setAdapter(countryAdapter);
  
              valueselected.getSelectedItemPosition();
  </code></pre>
  
  <p>Once scrolled, the selected value of the spinner needs to remain.</p>