Time for action – creating a multiplatform interface
Perform the following steps to create a multiplatform interface:
Create a new app using the Master/Detail Application template. This template includes the code to distinguish between a phone and tablet layout. A number of directories are created, as described in the following table:
Directory
Contents
ui/common
Place files that are not platform specific in here. Views such as the currency listing view shown later in this chapter will be placed in here.
ui/handheld/android
This directory contains files that are specific to Android phones. The
ApplicationWindow.js
file is executed when the app starts. This is where you start to create your UI.ui/handheld/ios
This contains files that are specific to iPhones and iPods. The
ApplicationWindow.js
file is executed when the app starts. This is where you start to create your UI.ui/handheld/mobileweb
This contains files where the layout is designed for mobile web. The
ApplicationWindow...