Because I always forget how to place a field at the beginning of a line and one opposite at the end, I create this post…
The easiest way to do this is using a Flex Box and the property justifyContent
like in this sample: https://sapui5.hana.ondemand.com/#/entity/sap.m.FlexBox/sample/sap.m.sample.FlexBoxOpposingAlignment
1 2 3 4 | < FlexBox alignItems = "Center" width = "100%" justifyContent = "SpaceBetween" > < Text text = "Text1" textAlign = "Begin" /> < Text text = "Text2" textAlign = "End" /> </ FlexBox > |
Another way is a using a Toolbar and a ToolbarSpacer. But of course a Toolbar should only be used, when it makes sense to use a Toolbar.
1 2 3 4 5 | < Toolbar > < Text text = "Text1" textAlign = "Begin" /> < ToolbarSpacer /> < Text text = "Text2" textAlign = "End" /> </ Toolbar > |