title: Android LinearLayout Weight
body: <p>I make Android UI with LinearLayout.</p>
  
  <p>There is a question for negative weigth in Linear Layout</p>
  
  <ol>
  <li><p><a href="https://i.stack.imgur.com/Y78j6.png" rel="nofollow noreferrer">weight ratio is 1:4:2:4:2:4:1</a>
  <a href="https://i.stack.imgur.com/Y78j6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y78j6.png" alt="enter image description here"></a></p></li>
  <li><p><a href="https://i.stack.imgur.com/qb27g.png" rel="nofollow noreferrer">weight ratio is 1:4:2:4:2:4:-5</a>
  <a href="https://i.stack.imgur.com/qb27g.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qb27g.png" alt="enter image description here"></a></p></li>
  <li>weight ratio is -5:4:2:4:2:4:1 and [weight ratio is 1:4:2:4:2:4:-5] are same.
  (Sorry for this... I cannot upload more than two links...)</li>
  </ol>
  
  <p>I understand result of first ratio and second ratio.</p>
  
  <p>First ratio elements are all positive, so all components are good.</p>
  
  <p>Second ratio elements contains negative element.
  The last element is negative, so some back part is disappear.</p>
  
  <p>Third ratio elements contains negative element.
  The first element is negative.
  I think that some front part must be disappear. But in this case, also some back part is disappear.</p>
  
  <p>How can I make some front part is disappear?</p>