Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. {
  2. "type": "APL",
  3. "version": "1.0",
  4. "theme": "dark",
  5. "import": [{
  6. "name": "alexa-viewport-profiles",
  7. "version": "1.0.0"
  8. },
  9. {
  10. "name": "alexa-layouts",
  11. "version": "1.0.0"
  12. }
  13. ],
  14. "resources": [
  15. ],
  16. "styles": {
  17. "textStylePressable": {
  18. "values": [
  19. {
  20. "backgroundColor": "#00000080"
  21. },
  22. {
  23. "when": "${state.focused}",
  24. "backgroundColor": "#3d3d3d80"
  25. },
  26. {
  27. "when": "${state.pressed}",
  28. "backgroundColor": "#60606080"
  29. }
  30. ]
  31. }
  32. },
  33. "layouts": {
  34. "TouchableBox": {
  35. "parameters": [
  36. {}
  37. ],
  38. "items": [{
  39. "type": "TouchWrapper",
  40. "onPress": {
  41. "type": "SendEvent",
  42. "arguments": ["${touch}"]
  43. },
  44. "items": [{
  45. "type": "Container",
  46. "direction": "column",
  47. "width": "${viewport.width / 3.3}",
  48. "height": "${viewport.height / 2.7}",
  49. "inheritParentState": true,
  50. "paddingRight": 15,
  51. "items": [{
  52. "type": "Frame",
  53. "inheritParentState": true,
  54. "style": "textStylePressable",
  55. "items": [
  56. {}
  57. ]
  58. }]
  59. }]
  60. }]
  61. }
  62. },
  63. "mainTemplate": {
  64. "parameters": [
  65. "payload"
  66. ],
  67. "item": [{
  68. "type": "Container",
  69. "direction": "column",
  70. "width": "100vw",
  71. "height": "100vh",
  72. "items": [
  73. {
  74. "type": "Image",
  75. "source": "${payload.data.properties.backgroundImage.sources[0].url}",
  76. "position": "absolute",
  77. "width": "100vw",
  78. "height": "100vh",
  79. "scale": "best-fill"
  80. },
  81. {
  82. "type": "Container",
  83. "paddingTop": 10,
  84. "paddingLeft": 50,
  85. "paddingRight": 50,
  86. "height": "${viewport.height}",
  87. "width": "${viewport.width}",
  88. "item": [{
  89. "type": "ScrollView",
  90. "id": "Scrollarea",
  91. "width": "${viewport.width}",
  92. "paddingTop": 15,
  93. "height": "100%",
  94. "items": [{
  95. "type": "Container",
  96. "direction": "column",
  97. "width": "${viewport.width}",
  98. "items": [
  99. {
  100. "type": "Container",
  101. "direction": "row",
  102. "width": "${viewport.width}",
  103. "items": [
  104. {
  105. "type": "TouchableBox",
  106. "boxIndex": 0,
  107. "touch": "touchparameter"
  108. },
  109. {
  110. "type": "TouchableBox",
  111. "boxIndex": 1,
  112. "touch": "touchparameter_box1"
  113. },
  114. {
  115. "type": "TouchableBox",
  116. "boxIndex": 2,
  117. "touch": "touchparameter_box2"
  118. }
  119. ]
  120. }
  121. ]
  122. }]
  123. }]
  124. }
  125. ]
  126. }]
  127. }
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement