Last active
January 9, 2018 01:51
-
-
Save edkf/2a7ba6a1092f6b61c5dbb97d8051a1e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create a coinRow component | |
coinRow = new Layer | |
parent: list.content | |
width: Screen.width | |
height: 100 | |
y: 101 * index | |
backgroundColor: '#DDDDDD' | |
# Showing the name with a TextLayer | |
coinName = new TextLayer | |
parent: coinRow | |
text: "Bitcoin" | |
fontSize: 18 | |
x: 30 | |
y: Align.center() | |
# Showing the price | |
coinPrice = new TextLayer | |
parent: coinRow | |
text: "$15,154.60" | |
fontSize: 18 | |
x: Align.right(-30) | |
y: Align.center() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment