titanium mobile - set view width to blank size -
i have 3 child views in container view. fill 1 child view's width blank size according 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 not working correctly. view in third place not showing near second. there method filling 1 view not giving actual width size?
i ti.slack. below approach working. may helps anybody.
<view width="ti.ui.fill" height="ti.ui.size"> <!-- 1 --><view width="60" height="ti.ui.size" backgroundcolor="yellow" left="0" /> <!-- 2 --><view width="ti.ui.fill" height="ti.ui.size" backgroundcolor="red" left="60" right="80" /> <!-- 3 --><view width="80" height="ti.ui.size" backgroundcolor="orange" /> </view>
Comments
Post a Comment