title: How to let user choose a specific year from a spinner
body: <p>Hello I want the user to be able to click a spinner and choose a year from those I provide. I would provide a range from 1970 to current year, but I don't know how to implement it.</p>
  
  <p>If I create a spinner and give it an array like this</p>
  
  <pre><code>&lt;string-array name="spinnerItems"&gt;
      &lt;item&gt;1970&lt;/item&gt;
      &lt;item&gt;1971&lt;/item&gt;
  &lt;/string-array&gt;
  </code></pre>
  
  <p>Then I would need to add more than 40 items by hand, and I would need to update the app manually every year. Also the spinner onClick callback returns not the string value but the index of the string in the array, so for example 1972 would be index 3.</p>
  
  <p>Also I will provide another spinner where the user will choose a year that's greater or equal of the year choosen in the first spinner.</p>
  
  <p>In the end I want tos end an api request with an interval of years.</p>
  
  <p>How can I do this?</p>