title: Button to bottom of screen
body: <p>I have a layout that looks like this,</p>
  
  <pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;ScrollView
          android:layout_width="match_parent"
          android:layout_height="wrap_content"&gt;
  
          &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="vertical"&gt;
  
              &lt;include
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  layout="@layout/layout1" /&gt;
  
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"/&gt;
  
              &lt;Button
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:text="button"/&gt;
          &lt;/LinearLayout&gt;
      &lt;/ScrollView&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>I want the button to appear at the bottom of the screen which works fine if use it with an activity.When i try to use it with a fragment though (inside a FrameLayout) the button doesn't show at all.Any suggestions?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>Thanks for your answers but i've already tried all that.Let me clarify something.I have a main layout that contains a <code>Toolbar</code> and a <code>Framelayout</code>.This <code>FrameLayout</code> is used for my 4-5 app's <code>Fragments</code>.One of them has that previous layout i posted.</p>