Is there any equivalent command to the mentioned Iayout-weight to dynamically define the height of more than one View inside a LinearLayout? I want to have a LinearLayout with orientation=”vertical” and then split that height to a defined ratio, but I can’t find any command for that.
Is there any equivalent command to the mentioned Iayout-weight to dynamically define the height
Share
You don’t need an equivalent to
layout-weight, you just use that. Set your width to a value you want, set height to be 0dp and set the weight to be in proportion to what you want.