【发布时间】:2018-08-27 15:38:02
【问题描述】:
是否可以在 iPhoneX 的(底部)放置区域内放置内容,在我的例子中是一个按钮?
这就是现在的样子。
为了更好地理解这里是我的 HTML。 据我了解,Apple 无法将任何内容插入到除了滚动视图之外的安全区域。
HTML
<FlexboxLayout flexDirection="column"
justifyContent="space-between"
alignContent="center"
alignItems="center"
class="transparentBackground"
height="100%">
<FlexboxLayout justifyContent="flex-end"
alignItems="center"
flexDirection="row"
class="action-bar">
<Label *ngIf="isAdmin"
text=""
class="font-awesome action-bar-item"
(tap)="onAdminPush()"></Label>
<Label text=""
class="font-awesome action-bar-item"
(tap)="onAppointments()"></Label>
</FlexboxLayout>
<AbsoluteLayout width="350"
height="350"
(tap)="onStartAppointment()">
<Image stretch="aspectFill"
borderColor="gray"
borderWidth="1"
borderRadius="200"
width="350"
height="350"
src="~/Assets/Imgs/terminanfrage.png"></Image>
<FlexboxLayout alignItems="center"
justifyContent="center"
width="100%"
height="100%"
style="color:black;">
<Label text="Terminanfrage"
class="label--appointment font-title-rrm"></Label>
</FlexboxLayout>
</AbsoluteLayout>
<Button class="btn btn-primary call_button font-title-rrm"
id="button"
text="Im Büro anrufen"
(tap)="onCallOffice()"></Button>
</FlexboxLayout>
【问题讨论】:
标签: nativescript angular2-nativescript iphone-x