mirror of
https://github.com/TonyJiangWJ/Auto.js.git
synced 2026-06-24 21:33:16 +08:00
新增 ui.layoutFile()
This commit is contained in:
parent
f733ad75f1
commit
ad9d50ea21
@ -19,6 +19,10 @@ module.exports = function (runtime, global) {
|
||||
ui.setContentView(view);
|
||||
}
|
||||
|
||||
ui.layoutFile = layout(file){
|
||||
ui.layout(files.read(file));
|
||||
}
|
||||
|
||||
ui.inflate = function(xml, parent, attachToParent){
|
||||
if(!activity){
|
||||
throw new Error("需要在ui模式下运行才能使用该函数");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user