Add weight support for LinearLayout.