add(sample): 护眼模式
fix(floaty): xml.toString() return empty when xml has just one node
This commit is contained in:
10
app/src/main/assets/sample/悬浮窗/护眼模式.js
Normal file
10
app/src/main/assets/sample/悬浮窗/护眼模式.js
Normal file
@@ -0,0 +1,10 @@
|
||||
var w = floaty.rawWindow(
|
||||
<frame gravity="center" bg="#44ffcc00"/>
|
||||
);
|
||||
|
||||
w.setSize(-1, -1);
|
||||
w.setTouchable(false);
|
||||
|
||||
setTimeout(()=>{
|
||||
w.close();
|
||||
}, 60000);
|
||||
Reference in New Issue
Block a user