|
# Examples of components to make available to your view for reuse |
|
###################################################################################################################### |
|
|
|
ICON = |
|
burger: new Layer height: 31, width: 41, image: IMAGE.menu, visible: false |
|
search: new Layer height: 33, width: 33, image: IMAGE.search, visible: false |
|
info: new Layer height: 44, width: 44, image: IMAGE.info, visible: false |
|
share: new Layer height: 53, width: 38, image: IMAGE.share, visible: false |
|
add: new Layer height: 42, width: 42, image: IMAGE.add, visible: false |
|
back: new Layer height: 36, width: 20, image: IMAGE.back, visible: false |
|
|
|
LIST = |
|
row: new Layer height: SIZE.barH, width: SCREEN.width, backgroundColor: COLOR.white, x: 0, y: 0, visible: false |
|
icon: new Layer name: NAME.icon, height: SIZE.barH, width: SIZE.listIconW, backgroundColor: COLOR.clear, x: SIZE.edge |
|
text: new Layer name: NAME.text, height: SIZE.barH, width: SIZE.listText, backgroundColor: COLOR.clear, x: SIZE.listIconW + (SIZE.edge*2), y: 0, clip: false |
|
textLabel: new Layer name: NAME.textLabel, height: 40, width: SIZE.listText, backgroundColor: COLOR.clear, x: 0, y: 10 |
|
textSub: new Layer name: NAME.textSub, height: 40, width: SIZE.listText, backgroundColor: COLOR.clear, x: 0, y: 44 |
|
image: new Layer name: NAME.image, height: SIZE.listIconW, width: SIZE.listIconW, backgroundColor: COLOR.clear, x: 0, y: ((SIZE.barH - SIZE.listIconW) / 2) - 3, image: IMAGE.folderShared |
|
|
|
TEXT = |
|
headerTitle: new Layer height: 44, width: SCREEN.width, backgroundColor: COLOR.clear, visible: false |
|
headerTitleAccountLabel: new Layer height: 22, width: SCREEN.width, backgroundColor: COLOR.clear, x: 0, y: 56 |
|
pivotTitle: new Layer height: 88, width: SCREEN.width/4, backgroundColor: COLOR.clear, visible: false |
|
|
|
# LIST ###################################################################################################################### |
|
|
|
# Combine List Layers |
|
LIST.icon.superLayer = LIST.row |
|
LIST.text.superLayer = LIST.row |
|
LIST.image.superLayer = LIST.icon |
|
LIST.textSub.superLayer = LIST.text |
|
LIST.textLabel.superLayer = LIST.text |