新增 ui.layoutFile()
This commit is contained in:
1 parent
f733ad75f1
commit
ad9d50ea21
1 file changed
+4
@@ -19,6 +19,10 @@ module.exports = function (runtime, global) {
|
|||||||
ui.setContentView(view);
|
ui.setContentView(view);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui.layoutFile = layout(file){
|
||||||
|
ui.layout(files.read(file));
|
||||||
|
}
|
||||||
|
|
||||||
ui.inflate = function(xml, parent, attachToParent){
|
ui.inflate = function(xml, parent, attachToParent){
|
||||||
if(!activity){
|
if(!activity){
|
||||||
throw new Error("需要在ui模式下运行才能使用该函数");
|
throw new Error("需要在ui模式下运行才能使用该函数");
|
||||||
|
|||||||
Reference in new issue
Block a user