title: Insert Preference XML inside a Layout
body: <p>I know my question is a bit strange but here's the story. I've added a PreferenceFragment in my App, I'm replacing a fragment in the main layout with the SettingsFragment, but i'm having a problem, the XML content is shown in match_parent, and shown above the toolbar, i want it below the toolbar.</p>
  
  <p>Why it's happening ? because the Fragment layout is as the following : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  tools:context="com.abohani.ramadantime.MainActivity"&gt;
  
  &lt;android.support.v7.widget.Toolbar
      android:id="@+id/toolbar"
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:background="?attr/colorPrimary"
      app:layout_scrollFlags="scroll|enterAlways|snap"
      android:minHeight="@dimen/abc_action_bar_default_height_material"
      android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
      app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /&gt;
  
  
  &lt;FrameLayout
      android:id="@+id/fragment"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:layout_alignParentBottom="true"
      /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>I can't change the fragment and set it below the toolbar, or i'm gonna miss most of my app (i added it for reasons).</p>
  
  <p>So my problem in a nutshell, the content is overlaping the toolbar, i've tried the following way : </p>
  
  <pre><code>    &lt;Preference
      android:layout="@layout/space"
      /&gt;
  </code></pre>
  
  <p>Space layout : </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"&gt;
  &lt;View
      android:id="@+id/views"
      android:layout_width="match_parent"
      android:layout_height="?attr/actionBarSize"
      android:visibility="invisible"
      /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>It worked, but when scrolling, it's not working, the content scroll above the toolbar.</p>
  
  <p>So, i need something close to "below:@id/layout" .</p>
  
  <p>Any ideas ?</p>