Skip to end of metadata
Go to start of metadata

Demonstrates basic use of ScrollableView control to present a horizontally-scrolling set of child views, called pages.

Example App Source Location

Icon

You can find this example app in the Alloy repository under samples/apps/ui/scrollableview. Check the instructions how to run these sample projects.

A ScrollableView encapsulates a horizontally-scrolling set of child views, known as pages, navigable using its built-in horizontal swipe gestures.

The main index.xml view declares a <ScrollableView/> named scroller that contains three <View/> elements. Clicking the label on the first view creates a new View object and appends it to the ScrollableView object's views array property.

app/views/index.xml
app/controllers/index.js

See also

  • No labels