3
我有几个屏幕元素在XML文件中SAPUI5 - 垂直布局重心
<core:View controllerName="myapp.view.login.login"
xmlns="sap.m" xmlns:core="sap.ui.core"
xmlns:l="sap.ui.layout">
<l:VerticalLayout >
<l:content>
<Input
type="Text"
maxLength="15"
fieldWidth="15px"
placeholder="name"
textAlign="Center">
</Input>
<Input
type="Password"
maxLength="15"
fieldWidth="15px"
placeholder="password"
textAlign="Center">
</Input>
<Button
text="Log in"
press="logIn">
</Button>
</l:content>
</l:VerticalLayout>
</core:View>
我怎么可以添加类似的布局重心或对齐,我想在屏幕中心这些元素。你能帮我解决吗?谢谢。
这是工作,但它是在页面的顶部中间我可以水平和垂直居中。? – miskohut
那么,我已经给你提示了;-)只需嵌入一个'HBox'来在X轴上进行调整和对齐 – Qualiture