[AC-5146] Set view width to blank size
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2017-10-15T18:50:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | n/a |
Reporter | Kerberos |
Assignee | Shak Hossain |
Created | 2017-08-17T00:07:31.000+0000 |
Updated | 2017-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
File | Date | Size |
---|---|---|
DB0x3.jpg | 2017-08-17T00:07:11.000+0000 | 11765 |
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.