Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid - How to implement a listbox as a modal dialog/popup
    primarykey
    data
    text
    <p>In my Android app, when a user clicks on a button, I want a list box to show up as a modal dialog, just like the way a Spinner works, except that the list box can also allow multiple choices. I tried using ListView as described in the android hello-listview tutorial (<a href="http://developer.android.com/resources/tutorials/views/hello-listview.html" rel="nofollow noreferrer">http://developer.android.com/resources/tutorials/views/hello-listview.html</a>). Unfortunately it doesn't seem to work the way I had expected it to. It doesn't show up as a modal dialog like the Spinner. I tried looking at what the Android browser does when a listbox is to be displayed. I browsed to www.functionx.com/html/lesson14.htm in the browser on my Android device and saw the following behavior (and this is exactly the behavior I want in my app): <br><br> When a dropdown/combobox in HTML is clicked, a spinner comes up as seen in the image here: <br> <a href="http://img842.imageshack.us/img842/803/htmlcombobox.png" rel="nofollow noreferrer">http://img842.imageshack.us/img842/803/htmlcombobox.png</a> <br> When a single select listbox is clicked, again a spinner comes up as seen here: <br> <a href="http://img13.imageshack.us/img13/3355/listboxsingle.png" rel="nofollow noreferrer">http://img13.imageshack.us/img13/3355/listboxsingle.png</a> <br> And when a multi-select listbox is clicked, a multi-select spinner / listview shows up in a dialog as seen here: <br> <a href="http://img835.imageshack.us/img835/711/listboxmulti.png" rel="nofollow noreferrer">http://img835.imageshack.us/img835/711/listboxmulti.png</a> <br> So my questions are:</p> <ol> <li>What is this widget (in the last image above) that allows multi-select in a modal dialog. I'm sure this must be a component already available on the Android platform since it's being displayed in the browser.</li> <li>Even the Spinners (in the first 2 images) in the browser look different than the default Spinner I'm seeing in my app. Would the browser be applying custom skinning / colors to the background and text of the Spinners that it displays?</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload