title: Set weight of Views in LinearLayout
body: <p>Below is what I want to achieve.</p>
  
  <p><img src="https://i.stack.imgur.com/PWbdO.png" alt="enter image description here"></p>
  
  <p>Each rounded-corner View is a LinearLayout. The 3 Views inside of the LinearLayout are supposed to each have a weight of 1. Right now, when I run the below code nothing is displayed. Only the background is showing but none of the Views.</p>
  
  <pre><code>LinearLayout.LayoutParams params2 = new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.MATCH_PARENT);
  params1.weight = 1;
  
  LinearLayout.LayoutParams params3 = new LinearLayout.LayoutParams(0, 75);
  params1.weight = 1;
  
  LinearLayout.LayoutParams params4 = new LinearLayout.LayoutParams(0, LinearLayout.LayoutParams.MATCH_PARENT);
  params1.weight = 1;
  
  ll.addView(levelTV, params4);
  ll.addView(recordTV, params2);
  ll.addView(image, params3);
  linearlayout.addView(ll, params1);
  </code></pre>
  
  <p>When setting weights, aren't you supposed to set the widths to zero? When I change the widths to <code>LinearLayout.LayoutParams.MATCH_PARENT</code>, all I see are the numbers (1, 2, 3, etc.) but nothing else. How can I get my desired layout?</p>