Skip to content

Instantly share code, notes, and snippets.

View marceloeduardo's full-sized avatar

Marcelo Eduardo marceloeduardo

View GitHub Profile
# This imports all the layers for "icons" into iconsLayers
Background = new BackgroundLayer backgroundColor: "#f6f6f6"
#assign number of list items within each level of the list
cellCount = 10
cellTwoCount = 10
CellThreeCount = 10
CellFourCount = 10
bg = new BackgroundLayer
backgroundColor: "#2DD7AA"
container = new Layer
backgroundColor: "transparent", height:1334, width: 750
#the content should be on 0. what moves is scrollY in the container.
list = new Layer
y:0, backgroundColor: "transparent", height:1920, width: 750
itemSize = 100
items =[]
for i in [0..5]
items[i] = new Layer
x:0
y:0+(i*itemSize)
items[i].on Events.Click, (item, i)->
print i
studio = true
#Android
# my approach is to use 720x1280 on the real device
# using this measurements on the studio, allows everything to run in the device without forcing scaling in framer
# Status bar: 48px
# System bar: 96px
# titleBars : 112px
# icons: 48 x 48