title: How to Implements multiple spinner with different item list and different action on click in the same Activity
body: <p>I want to implement two different spinner in Android, the spinner have different data set</p>
  
  <p>This is the spinner with the age, that uses a defined String array with all age ranges (es <em>18-20</em>, <em>19-21</em> etc.)</p>
  
  <pre><code> &lt;Spinner
          android:id="@+id/spAge"
          android:layout_width="match_parent"
          android:layout_height="35dp"
          android:entries="@array/age_array" 
          tools:listitem="@android:layout/simple_spinner_item/&gt;
  </code></pre>
  
  <p>And this is the spinner with the sex, that show only the two items <em>Male</em> and <em>Female</em></p>
  
  <pre><code> &lt;Spinner
         android:id="@+id/spSex"
         android:layout_width="match_parent"
         android:layout_height="35dp"
         android:entries="@array/sex_array"
         tools:listitem="@android:layout/simple_spinner_item /&gt;
  </code></pre>
  
  <p>For each selected item the my activity should set the associated selected items values to the two Objects:</p>
  
  <pre><code>String selectedAge;
  String selectedItem;
  </code></pre>
  
  <p>The sample that I have seen doesn't contains multiple spinner with different items set and different actions on item selected, and I don't know how to solve the problem.</p>