Skip to main content

Posts

Showing posts with the label cross-platform

Best practice discussion: When to favor a webview over a native UI in titanium?

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 encoura