Android Question What is the best way to create a drop-down list box?

Topwiz

Member
Licensed User
Longtime User
In HTML there is the SELECT tag which allows you to specify a value and description. The user sees the description and your code sees the value:

<select id="myoption">
<option value="N">No</option>
<option value="Y">Yes</option>
</select>

In my first B4A app I used a Spinner control which looks nice but I had to create an array to hold the data values that go with the descriptions shown in the control.

Is there an easier way to do this? If not, I think this would be a great improvement if the Spinner control could keep track of the data value as well as the description.
 

DonManfred

Expert
Licensed User
Longtime User
Upvote 0
Top