feat:add RefreshableDemo

This commit is contained in:
pengfei.zhou
2019-11-26 11:34:02 +08:00
parent c90547a1f0
commit 9a9482eeb5
8 changed files with 80 additions and 46 deletions

View File

@@ -60,6 +60,18 @@ class RefreshableDemo extends Panel {
refreshView.setRefreshable(context, false)
}
} as IText),
label('Rotate self').apply({
width: 300,
height: 50,
bgColor: colors[0],
textSize: 30,
textColor: Color.WHITE,
layoutConfig: layoutConfig().exactly(),
} as IText).also(v => {
v.onClick = () => {
v.nativeChannel(context, "setRotation")(0.25)
}
}),
]).apply({
layoutConfig: layoutConfig().atmost().h(LayoutSpec.WRAP_CONTENT),
gravity: gravity().center(),

File diff suppressed because one or more lines are too long