title: How to Align 3 buttons in a line, android?
body: <p>I have linear vertical layout in parent.
  Then a horizontal linear layout in the bottom including 3 buttons</p>
  
  <p>I want 1st button at the leftmost side of the activity in bottom
  2nd button in the center 
  and 3rd button in the rightmost side</p>
  
  <p>Here is the xml</p>
  
  <pre><code>  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent"
  android:orientation="vertical" &gt;
  
     &lt;ImageView
      android:id="@+id/viewImageView"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_weight="1"
      android:contentDescription="@null"
      android:src="@drawable/ic_launcher" /&gt;
  
  &lt;LinearLayout
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom" &gt;
  
      &lt;Button
          android:id="@+id/button1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Button" /&gt;
  
      &lt;Button
          android:id="@+id/button2"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Button" /&gt;
  
      &lt;Button
          android:id="@+id/button3"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:gravity="right"
          android:layout_gravity="fill_vertical"
          android:text="Button" /&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p></p>