Skip to end of metadata
Go to start of metadata

Demonstrates how to structure an Alloy project with folders that contains platform-specific views.

App folder location



You can define platform-specific resources in an Alloy project, including controllers, views and styles. Simply create a folder named android or ios inside the app/controllers, app/views, or app/styles folders, and add your platform specific files. The sample application uses this feature to display a scrollable list of images using CoverFlowView component for iOS builds, and a ScrollView for other platform builds.

The project structure looks as follows:

App views folder

The views/index.xml file includes a ScrollView element:


And the views/ios/index.xml file includes the CoverFlowView component.


See also

  • No labels