title: set Bottom bottom bar in Linear Layout
body: <p>I am wondering how it's possible to create a buttom bar buttons in android, can any thing to set bottom bar in Linear Layout ?</p>
  
  <p>main.xml is :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
      &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:layout_width="fill_parent" android:layout_height="fill_parent"
          android:weightSum="1" android:orientation="vertical"&gt;
  
          &lt;TextView android:text="@string/hello" android:layout_width="wrap_content"
          android:layout_gravity="center_horizontal" android:layout_height="wrap_content"
          android:layout_marginTop="30dip" /&gt;
          &lt;TextView android:layout_width="wrap_content" android:id="@+id/small_text"
          android:layout_height="wrap_content" android:text="@string/small_text"
          android:layout_gravity="center" android:layout_margin="40dip"&gt;&lt;/TextView&gt;
          &lt;TextView android:layout_width="wrap_content" android:id="@+id/normal_text"
          android:layout_height="wrap_content" android:textAppearance="?android:attr/textAppearanceMedium"
          android:layout_margin="10dip" android:text="@string/normal_text"
          android:layout_gravity="center"&gt;&lt;/TextView&gt;
          &lt;TextView android:layout_width="wrap_content" android:id="@+id/large_text"
          android:editable="true" android:layout_height="wrap_content"
          android:textAppearance="?android:attr/textAppearanceLarge"
          android:layout_margin="10dip" android:text="@string/large_text"
          android:layout_gravity="center" android:focusable="false"
          android:focusableInTouchMode="false"&gt;&lt;/TextView&gt;
  
          &lt;LinearLayout android:id="@+id/footer"
          android:layout_width="fill_parent" android:orientation="horizontal"
          android:layout_alignParentBottom="true" style="@android:style/ButtonBar"
          android:layout_height="wrap_content" android:layout_gravity="bottom"&gt;
  
              &lt;Button android:id="@+id/saveButton" android:layout_width="wrap_content"
              android:layout_height="wrap_content" android:layout_weight="1"
                  android:text="Start" /&gt;
  
              &lt;Button android:id="@+id/cancelButton" android:layout_width="wrap_content"
              android:layout_height="wrap_content" android:layout_weight="1"
              android:text="Exit" /&gt;
          &lt;/LinearLayout&gt;
  &lt;/LinearLayout&gt;
  </code></pre>