Multi selection in spinner
<p>I created a 2 spinners and I need to enable users to select multiple things from each of them. I manage to add checkbox via android.R.layout.simple_list_item_multiple_choice. Now i manage to get everything that I wanted but problem is how can I enable user to select multiple things there are already check boxes but when user click on some item it immediately close spinner and stay selected on that item.</p>

<p>This is the design that I get and that I want but problem is with selection.</p>

<p><a href="http://pokit.org/get/?1c872c5becdeb79b792617fc870f1da4.jpg" rel="nofollow">http://pokit.org/get/?1c872c5becdeb79b792617fc870f1da4.jpg</a>
This is selection:
<a href="http://pokit.org/get/?e892ee2f941ab3f98b8ee51e6f9e8fc6.jpg" rel="nofollow">http://pokit.org/get/?e892ee2f941ab3f98b8ee51e6f9e8fc6.jpg</a></p>

<p>This is my current code for that spinner:</p>

<pre><code> public void onViewCreated(View view, Bundle savedInstanceState) {
    Spinner placesspinner=(Spinner)getActivity().findViewById(R.id.spinner_locations);
    Spinner catspinner=(Spinner)getActivity().findViewById(R.id.spinner_category);
    ArrayAdapter&lt;String&gt; adp1=new ArrayAdapter&lt;String&gt;(getContext(),android.R.layout.simple_list_item_multiple_choice,places);
    placesspinner.setAdapter(adp1);
    catspinner.setAdapter(adp1);
    // Setup any handles to view objects here
    // EditText etFoo = (EditText) view.findViewById(R.id.etFoo);
}
</code></pre>