Add: tasker plugin support, injectable webview
This commit is contained in:
42
app/src/main/assets/modules/ui.js
Normal file
42
app/src/main/assets/modules/ui.js
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
bg
|
||||
w
|
||||
h
|
||||
margin
|
||||
marginLeft
|
||||
margin*
|
||||
padding
|
||||
padding*
|
||||
layout_gravity="center"
|
||||
gravity
|
||||
|
||||
|
||||
weight
|
||||
|
||||
|
||||
ui.layout(
|
||||
<linear orientation="vertical" w="fill" h="300" bg="#ff0000" gravity="center">
|
||||
<text text="测试" size="18" color="#000000"/>
|
||||
<button id="btn" text="按钮"/>
|
||||
</linear>
|
||||
);
|
||||
|
||||
<relative>
|
||||
|
||||
</relative>
|
||||
|
||||
<horizon>
|
||||
|
||||
</horiz>
|
||||
|
||||
<vertical>
|
||||
|
||||
</vertical>
|
||||
|
||||
|
||||
function ui(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
module.exports = ui;
|
||||
6
app/src/main/assets/modules/web.js
Normal file
6
app/src/main/assets/modules/web.js
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
module.exports = {
|
||||
test: function(){
|
||||
return "test";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user