title: Layout width equal height
body: <p>Is there a method to have the height depending from the width in my xml?</p>
  
  <p>I have some Buttons in a linear layout. The button's widths depending from the device because they fill the screen horizontally. I want to have square buttons and this is my problem.
  Is there one can help me?</p>
  
  <pre><code>&lt;Button
              android:id="@+id/b_0xa"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_weight="1"
              android:clickable="false"
              android:text="@string/b_0xa" /&gt;
  </code></pre>