title: Place 3 buttons in a LinearLayout to occupy equal amount of space
body: <p>i would like to have three buttons taking equal amount of available space horizontally in a row.
  I used <code>android:layout_gravity</code>. What is the problem?</p>
  
  <p>layout xml :</p>
  
  <pre><code>&lt;LinearLayout 
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:orientation="horizontal"
      android:weightSum="1.0"
      &gt;
  
      &lt;Button android:id="@+id/button"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/Bg"
              android:background="@drawable/button_red"
              android:layout_weight=".2"
              android:layout_gravity="left"
      /&gt;
      &lt;Button android:id="@+id/button"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/Bm"
              android:background="@drawable/button_red"
              android:layout_weight=".2"
              android:textColor="#ffffff"
              android:layout_gravity="center"
      /&gt;
  
      &lt;Button
          android:id="@+id/button"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/button_red"
          android:layout_weight=".2"
          android:text="@string/Bf"
          android:layout_gravity="right"
      /&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>if someone see whats wrong, thanks.</p>