Sapui5 如何在SAP UI5中创建到文本字段之间的空间

Sapui5 如何在SAP UI5中创建到文本字段之间的空间,sapui5,Sapui5,我在sapui5中创建了三个文本框。我想用空格分隔这些文本框。我试过使用间距,但不起作用。请帮我解决这个问题。当我必须使用空格时,我使用“\u00a0” 例如 createContent : function(oController) { var content = []; content.push(new sap.ui.commons.TextField({ value : "Field1" })); content.push(new sap.

我在sapui5中创建了三个文本框。我想用空格分隔这些文本框。我试过使用
间距,但不起作用。请帮我解决这个问题。

当我必须使用空格时,我使用
“\u00a0”

例如

createContent : function(oController) {
    var content = [];

    content.push(new sap.ui.commons.TextField({
        value : "Field1"
    }));
    content.push(new sap.ui.commons.TextView({
        text : "\u00a0"
    }));
    content.push(new sap.ui.commons.TextField({
        value : "Field2"
    }));
    content.push(new sap.ui.commons.TextField({
        value : "Field3"
    }));
    return content;
}

将创建三个文本字段,其中第一个和第二个字段之间用一个空格分隔

,空格为ok。对于休息??对于休息,您应该尝试sap.ui.commons.layout.VerticalLayout