Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5146] Set view width to blank size

GitHub Issuen/a
TypeImprovement
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-10-15T18:50:48.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterKerberos
AssigneeShak Hossain
Created2017-08-17T00:07:31.000+0000
Updated2017-10-15T18:50:48.000+0000

Description

I have 3 child views in a container view. I would like to fill one child view's width to blank size according to device width.
<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>
This code is not working correctly. View is in third place is not showing near the second. is there any method for filling one view not giving absolute width size?

Attachments

FileDateSize
DB0x3.jpg2017-08-17T00:07:11.000+000011765

Comments

  1. Sharif AbuDarda 2017-09-24

    Hello, Please explain your issue a little bit. You want your view to take the whole parent width. You set width to Ti.UI.FILL. Thanks.

JSON Source