title: how to create a spinner with radio buttons
body: <p>In main.xml I would like to have a spinner1 with two radio buttons and a spinner2 with 3 checkboxes. I don't know how to define and create this spinners in Main.java.
  Need some help.</p>
  
  <p><strong>main.xml</strong></p>
  
  <pre><code>&lt;Spinner
  android:id="@+id/spinner1"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  /&gt;
  &lt;Spinner
  android:id="@id/spinner2"
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  /&gt;
  </code></pre>
  
  <p>spinner1 - needs to have radio buttons and spinner2 need to have multiple checkboxes</p>
  
  <pre><code>main.java
  
  privare Spinner spiner1,spiner2;
  public void OnCreate(BUndle SaveInstaceState)
  {
  super.OnCreate(savedInstanceState);
  setContentView(R.layout.main)
  
  spiner1=(Spinner)findViewById(R.id.spinner1);
  spiner2=(Spinner)findViewById(R.id.spinner2);
  
  //what to do from here?
  
  }
  </code></pre>