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> 

preview

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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -