title: How to set android:layout_weight and android:layout_width in code?
body: <p>Can someone please tell me how to set the android:layout_weight and android:layout_width XML attributes in code for dynamically created views?</p>
  
  <p>Reference: <a href="https://stackoverflow.com/questions/2865497/xml-table-layout-two-equal-width-rows-filled-with-equally-width-buttons">XML Table layout? Two EQUAL-width rows filled with equally width buttons?</a></p>