title: LinearLayout component size. How does weight influence on size
body: <p>I need to set equal sizes to the buttons on the screen. These buttons have different content (different length). I want it to look like in line number 3 on picture </p>
  
  <p><img src="https://i.stack.imgur.com/7E6vG.png" alt="enter image description here"></p>
  
  <p>I tried:</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:id="@+id/LinearLayout1"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:layout_gravity="center"
  android:orientation="horizontal" &gt;
  
  &lt;Button
      android:id="@+id/button2"
      android:layout_width="0dp"
      android:layout_height="fill_parent"
      android:layout_weight="1"
      android:text="Button" /&gt;
  
  
  &lt;Button
      android:id="@+id/button1"
      android:layout_width="0dp"
      android:layout_height="fill_parent"
      android:layout_weight="1"
      android:text="B" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>But i got two little buttons of different size in the center of the screen. What is wrong?
  Please, give an example.</p>