feat:add Popover for Android done

This commit is contained in:
pengfei.zhou
2019-11-29 10:44:18 +08:00
parent 152f136b67
commit 60d93e1bf9
3 changed files with 158 additions and 17 deletions

View File

@@ -21,17 +21,15 @@ class PopoverDemo extends Panel {
textColor: Color.WHITE,
layoutConfig: layoutConfig().exactly().a(Gravity.Center),
text: "This is PopOver Window",
onClick: () => {
modal(context).toast('Dismissed after 3 seconds')
setTimeout(() => {
popover(context).dismiss()
}, 3000)
},
}).also(v => {
let idx = 0
v.onClick = () => {
v.bgColor = colors[(++idx) % colors.length]
}
modal(context).toast('Dismissed after 3 seconds')
setTimeout(() => {
popover(context).dismiss()
}, 3000)
}))
}
} as IText),