best approach to replicate iPhone Scrollable List View with text/buttons etc on both Android & IOS with Corona?

I am looking at porting a little iPhone (objective C) application to Corona to gain the ability to port to both Android & IOS.

Question - What is the best current approach in Corona to replicate a settings page which consists of (in the native iPhone app) the following:

  • Scrollable List View with options (like the iPhone Settings app), holds UI components such as:
  • text entry
  • buttons (on/off)
  • one UISegmentedControl (e.g. does “feet/metric” choice)
  • some values shown as text which launch a picker wheel view to set them

Is using the Corona Widget’s the way to go at the moment? I note they’re marked as Beta
[import]uid: 140210 topic_id: 29203 reply_id: 329203[/import]

Probably. They are getting better but are still pretty good right now. SegmentedControl was removed from the widget library and is a freely downloadable lib on the code page.

Mimicking the iPhone Settings app is quite a bit more complex though - I’m not sure what the state of on/off buttons are. You’d need some combo of storyboard, widgets, and maybe even that new 3rd party UI library… [import]uid: 41884 topic_id: 29203 reply_id: 117453[/import]

actually I’m still trying to determine whether it is possible with the “widget.newTableView” to actually include widget (e.g. buttons) within one of the rows of the tableview - do you know if this is possible?

Else if not possible, I guess you need to use a scrollview to place widgets (e.g. buttons) on then?

Background - The TableView gives the iPhone preferences like layout of the categories/rows out of the box, so putting text entry/buttons etc within each row would be the easiest way to replicate [import]uid: 140210 topic_id: 29203 reply_id: 117464[/import]

On the plus side, the rows are very openly accessible in widget.newTableView(). You can pretty much insert any sort of display object into a row, widgets included. I hear the picker is improved but I have no experience with that one lately. It was in really rough shape in december but I imagine it has changed a lot since then.

But there are some side effects:

newScrollView: to my knowledge you wouldn’t be able to use widget buttons with this as it swallows the ended phase in order to make the scrolling element function.

newTableView: it might work using widget buttons but you would have to return true (which basically stops scrolling cold if you touch the button)

The difficulty of what you speak of is mostly just all of the different widget and button types needed to make it all co-exist. I’m not sure how well that would work out. But again, I haven’t tried lately. It would be fairly trivial to at least get a table view going and insert a widget button and see how it works together, if you wanted to try.

(If you wanted to go the pay route there is that UI candy (is that the name?) 3rd party solution that would probably be a lot faster for crafting full blown iPhone menu UI and wedging it into a Corona app) [import]uid: 41884 topic_id: 29203 reply_id: 117466[/import]

Widget Candy I think you refer to. Yes I’ve been wondering about that as an option, but to start off with I thought I would try to understand what is possible with the out-of-the-box functions…

Would be interested to hear from anyone who has compared Widget Candy vs Corona Widgets for a preference page for an app? [import]uid: 140210 topic_id: 29203 reply_id: 117469[/import]