0
我在容器视图中有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>
此代码不能正常工作。观看次数在第二位没有出现。有没有填充一个视图没有给出实际宽度大小的方法?