Creating a Rich APL Document
Let’s put APL to work by creating an APL template that tells the user to enjoy their trip and includes some basic itinerary details.
APL affords us the opportunity to flex our creative muscles and come up with a visually interesting design. The following APL template employs a mix of Container, Text, and Image components to wish the user an enjoyable trip and show some trip details, all in a outer-space landscape:
| { "type": "APL", "version": "1.2", "theme": "dark", "mainTemplate": { "items": [ { "type": "Container", "width": "100vw", "height": "100vh", "paddingLeft": "10dp", "paddingTop": "10dp", "paddingRight": "10dp", "paddingBottom": "10dp", "direction": "column", "items": ... |
Get Build Talking Apps for Alexa now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.