如何在XML视图SAPUI5中使用layout.Grid?

如何在XML视图SAPUI5中使用layout.Grid?,sapui5,Sapui5,我有那个密码。() 我不明白如何在XML表示法中使用以下内容 layoutData : new sap.ui.layout.GridData({span : "L4 M6 S12"}) CTRL+ALT+SHIFT+S->XML视图转换-一个允许您将现有视图转换为XML或HTML视图标记的实用程序 <sap.ui.commons:TextView text="Text spanned over 4 cols on large, 6 cols on medium, and 12 cols

我有那个密码。()

我不明白如何在XML表示法中使用以下内容

layoutData : new sap.ui.layout.GridData({span : "L4 M6 S12"})
CTRL+ALT+SHIFT+S->XML视图转换-一个允许您将现有视图转换为XML或HTML视图标记的实用程序

<sap.ui.commons:TextView text="Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.">
    <sap.ui.commons:layoutData>
        <sap.ui.layout:GridData span="L4 M6 S12" spanL="0" spanM="0" spanS="0" indentL="0" indentM="0" indentS="0" spanLarge="0" spanMedium="0" spanSmall="0" indentLarge="0" indentMedium="0" indentSmall="0"></sap.ui.layout:GridData>
    </sap.ui.commons:layoutData>
</sap.ui.commons:TextView>

<sap.ui.commons:TextView text="Text spanned over 4 cols on large, 6 cols on medium, and 12 cols on small screens.">
    <sap.ui.commons:layoutData>
        <sap.ui.layout:GridData span="L4 M6 S12" spanL="0" spanM="0" spanS="0" indentL="0" indentM="0" indentS="0" spanLarge="0" spanMedium="0" spanSmall="0" indentLarge="0" indentMedium="0" indentSmall="0"></sap.ui.layout:GridData>
    </sap.ui.commons:layoutData>
</sap.ui.commons:TextView>