Android Development
How to set View width (height) in percentage of parent View in Android
Example:I want to set child LinearLayout height = 50% of parrent LinearLayout in Android. Like in HTML. To set height in percents I do some trick with android:layout_weight and android:weightSum Here the screenshot: To do this you need do somethind like this. Look at code below: