【发布时间】:2017-12-24 09:07:34
【问题描述】:
我想在 NativeScript 中的绝对布局中将一个元素定位在屏幕底部。
我有这个代码:
<AbsoluteLayout>
<maps:mapView
left="0"
top="0"
width="100%"
height="100%"
latitude="{{ map.latitude }}"
longitude="{{ map.longitude }}"
zoom="{{ map.zoom }}"
padding="{{ map.padding }}"
mapReady="onMapReady"
coordinateTapped="onCoordinateTapped"
markerSelect="onMarkerSelect"
shapeSelect="onShapeSelect"
cameraChanged="onMapCameraChanged"/>
<ScrollView
left="0"
top="0"
width="100%"
orientation="horizontal">
<!-- More XML -->
</ScrollView>
<StackLayout
left="0"
bottom="0"
width="100%"
visibility="visible"
orientation="horizontal"
style="background-color: red;">
<Label text="TITLE"></Label>
</StackLayout>
</AbsoluteLayout>
我发现AbsoluteLayout没有底部属性...这是我要创建的图片:
那么如何排列图片中的物品,尤其是底部的物品?
编辑:我应该注意这个底部矩形的尺寸可能并不总是相同的......
【问题讨论】:
标签: nativescript