Im looking for a way to create a standard dropdown menu, for my app. And it seems like Titanium does not have such a thing.
Im talking the classic dropdownmenu, where you see 1 textfield (usually empty at first), and a small arrow at the right side. And when you click it, a list of options is made visible. You click one of the items in the list, and the list dissappears and your textfield holds that value.
I have looked into the Pickers of Titanium, and it seems like this is the replacement for this classic UI-element.
Is is really nessesary to use a picker for this? I mean, it seems like a lot of work: 1. Creating a container view for the picker
Add the picker to the containing view "picker-view"
Create a event on the textfield, to show the picker-view (and deal with all the hassle of controlling the z-index, since the picker-view will be on top of some other views in my app)
Create a event to handle the transfer of the value from the picker to the textfield, and then hiding the picker-view once again.
phew... what a load of work... Or am I missing something here???
I think you are looking for Titanium.UI.OptionDialog
Take a look at Jason's TitanUp library specifically his TU.UI.Views.SimplePicker
Titanium implements what is available on the native platforms. So you're not looking for such a thing in Titanium, you are looking for the equivalent in native controls. The picker seems to be what you are looking for. In the time that it took you to list out all those steps, you could have created and implemented the picker. Its just Ti.UI.createPicker()
Think you can help? Login to answer this question!