【发布时间】:2017-07-28 11:59:59
【问题描述】:
我在容器视图中有 3 个子视图。我想根据设备宽度将一个子视图的宽度填充为空白大小。
<View width="Ti.UI.FILL" height="Ti.UI.SIZE" layout="horizontal">
<!-- 1 --><View width="60" height="Ti.UI.SIZE" backgroundColor="yellow" />
<!-- 2 --><View width="Ti.UI.FILL" height="Ti.UI.SIZE" backgroundColor="red" />
<!-- 3 --><View width="80" height="Ti.UI.SIZE" backgroundColor="orange" />
</View>
此代码无法正常工作。视图在第三位附近没有显示在第二位附近。有什么方法可以填充一个不给出实际宽度大小的视图吗?
【问题讨论】:
标签: titanium-mobile appcelerator-titanium