I'm currently working on a cross-platform mobile app and have gone through the process of creating the UI of my application using the given Titanium api.
Compared to when you are building a mobile web application this is a time consuming task, because you don't have the possibility to work on the rendered UI like you can on a rendered webpage using firebug.
Especially form creation is bothersome, so I decided to build my forms using html and render them in a Webview, which worked out pretty sweet for several reasons:
WebViews are automatically scrollable, so the soft keyboard won't cover the input fields in your HTML form
You can control which keyboard type is displayed with a WebView form by setting attributes on the
<input>
tag.You can use JavaScript libraries to add form validation, field highlighting, and so forth to an HTML form.
Although this works like a charm and the titanium documentation encourages you to use webviews for building forms, I have mixed feelings about having mixed native UIs with webviews.
My questions to you:
What do you think of mixing native UIs with Webviews?
Do you have other use cases that favor a Webview?
What could be general criteria for using one or the other?
Thank you in advance :)