新增 ui.layoutFile()
This commit is contained in:
@@ -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