title: How do you make a spinner pick from different lists?
body: <p>As of rite now all I have is one spinner with three options, what i would like to do is if option one is selected then a random from list1 is selected, option 2 picks from list 2 and so on, I have a small portion of code written just enough to declare the spinner and populate it with choices, where do i go from here? Thanks is advance!</p>
  
  <p>Here is my code on my xml:</p>
  
  <pre><code>    &lt;Spinner
      android:id="@+id/alcohol"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="10dp"
      android:prompt="@string/prompt" /&gt;
  </code></pre>
  
  <p>Then this is on my .java file:</p>
  
  <pre><code>    setContentView(R.layout.activity_options);
   // Set Alcohol Spinner
      Spinner spinner = (Spinner) findViewById(R.id.alcohol);
   // Create an ArrayAdapter using the string array and a default spinner layout
   ArrayAdapter&lt;CharSequence&gt; adapter = ArrayAdapter.createFromResource(this,
           R.array.alcohol, android.R.layout.simple_spinner_item);
   // Specify the layout to use when the list of choices appears
   adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
   // Apply the adapter to the spinner
   spinner.setAdapter(adapter);
  </code></pre>
  
  <p>Thank you everyone! </p>