Screen.backgroundColor="#2dd7aa"
scroll=new ScrollComponent
width: 300
height:300
x: Align.center
y: Align.center
backgroundColor: "rgba(255,225,225,0.2)"
scrollHorizontal:false
borderRadius: 8
scroll.contentInset=
top:20
bottom:20
for i in [0..5]
layer=new Layer
parent: scroll.content
name:"Row #{i}"
width:260
height:80
x:20
y:90*i
backgroundColor:"#fff"
borderRadius:6
网友评论