title: How to make footer in Linear Layout in android
body: <p>I want to make footer in linear layout but this layout I also use fragment tag. Does anyone how to set a footer in this layout? I have seen many examples but I found no success.</p>
  
  <p>My XML:-</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:orientation="vertical"&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="horizontal" &gt;
      &lt;fragment
          android:id="@+id/list_Fragment"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_weight="1"
          class="shoppingmazza.android.catalyst.com.shoppingmazza.activity.ListFragment" &gt;
      &lt;/fragment&gt;
  
      &lt;fragment
          android:id="@+id/detail_Fragment"
          android:layout_width="0dp"
          android:layout_height="match_parent"
          android:layout_weight="2"
          class="shoppingmazza.android.catalyst.com.shoppingmazza.activity.DetailFragment" &gt;
      &lt;/fragment&gt;
  &lt;/LinearLayout&gt;
      &lt;RelativeLayout
          android:id="@+id/footer"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="#eee"&gt;
          &lt;TextView
              android:id="@+id/cart"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/filter"
              android:textSize="20sp"
              android:padding="10dp"
              android:textColor="#FF0000"
              android:layout_alignParentBottom="true"/&gt;
          &lt;TextView
              android:id="@+id/buy_now"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:text="@string/clear_all"
              android:padding="10dp"
              android:textSize="20sp"
              android:textColor="#FF0000"
              android:layout_alignParentBottom="true"/&gt;
      &lt;/RelativeLayout&gt;
      &lt;Space
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_weight="1"/&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I am new in android developing please me! Thanks in advance!</p>