Children views having equal height
<p>I have a horizontal <code>LinearLayout</code> with two buttons with text inside.
The <code>LinearLayout</code>'s and the buttons <code>layout_height</code> is <code>wrap_content</code>.</p>

<p>The text of one of the two buttons takes two lines unlike the other's which takes one line.</p>

<p>So at the end one of the buttons has a bigger height than the other which is something that I don't want.</p>

<p>I know how to solve this programmatically. So the reason I making this question is to know whether I can solve this through xml.</p>

<p>One possible solution is, for the button whose text is one line, set </p>

<pre><code>layout_height="match_parent"
</code></pre>

<p>and it works fine.</p>

<p>But the problem here is that generally I don't know which button will occupy the biggest height.</p>

<p>In essence what I want to do is: having a LinearLayout with Views inside 
I want to set the height of all the children Views to be equal to the height of the View which when has its content wrapped has the max height. </p>

<p>And the question is if this is possible through xml?</p>

<p>An example XML. Also I forgot to add that I already have 0dp in the widths.</p>

<pre><code>&lt;LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"&gt;

    &lt;Button
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/some_string" /&gt;

    &lt;Button
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/some_other_string" /&gt;

&lt;/LinearLayout&gt;
</code></pre>