SAPUI5 - Vertikales layout Schwerkraft
ich habe mehrere Elemente auf dem Bildschirm in der xml-Datei
<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>
wie kann ich so etwas wie layout Schwerkraft oder ausrichten, ich möchte diese Elemente in der Mitte des Bildschirms. Könnten Sie mir helfen mit, dass? Danke.
InformationsquelleAutor miskohut | 2015-04-15
Du musst angemeldet sein, um einen Kommentar abzugeben.
Da Sie mit der
sap.m
Bibliothek wie auch immer, ich würde empfehlen die Nutzung dessap.m.VBox
control (odersap.m.HBox
für horizontale layouts)Die
VBox
genau das gleiche tut wie dieVerticalLayout
und mehr (können Sie angeben, Ausrichtung, Begründung eine wirklich flexible Art,Den
VBox
undHBox
Erben vonFlexBox
finden Sie diese Beispiele auf, was Sie tun können: https://sapui5.hana.ondemand.com/sdk/explored.html#/entity/sap.m.FlexBox/samplesInformationsquelleAutor Qualiture