title: Is there a way to create an option group in android spinner?
body: <p>does anyone know how to create an option group in android spinner? I want to do something like this:</p>
  
  <pre><code>&lt;select&gt;
    &lt;optgroup label="Swedish Cars"&gt;
      &lt;option value="volvo"&gt;Volvo&lt;/option&gt;
      &lt;option value="saab"&gt;Saab&lt;/option&gt;
    &lt;/optgroup&gt;
    &lt;optgroup label="German Cars"&gt;
      &lt;option value="mercedes"&gt;Mercedes&lt;/option&gt;
      &lt;option value="audi"&gt;Audi&lt;/option&gt;
    &lt;/optgroup&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p><a href="http://www.w3schools.com/tags/tryit.asp?filename=tryhtml_optgroup" rel="nofollow">Demo here.</a></p>