Set the Height of View to Make It Square By Knowing Only Its Width Weight
<p>I have this scenario:
A horizontal LinearLayout that fills the container and <code>weightSum=100</code>, and two views inside with weight of 50 each.</p>

<p>Now how do I make these two views square (e.g. the height must be equal to their width). The number of LinearLayout rows is unknown, so basically, I can not wrap them in a vertical container with weights in this case.</p>
