title: Inflate layout in an activity with PreferenceFragment
body: <p>My custom <code>FragmentSettings()</code> extends <code>android.preference.PreferenceFragment</code> and I simply add it in my activity.</p>
  
  <p>I want to inflate (add) as well the <code>layout.logo</code> which has gravity:bottom. However with my code the inflated <code>layout.logo</code> is not visible. I guess because I use <code>inflate()</code> with <code>getFragmentManager()</code>? How can I correctly add a layout in this case?</p>
  
  <pre><code>public class ActivitySettings  extends Activity {
  
      @Override
      public void onCreate(Bundle savedInstanceState) {   
          super.onCreate(savedInstanceState);
          FragmentSettings details = new FragmentSettings();
          details.setArguments(getIntent().getExtras());
          getFragmentManager().beginTransaction().add(android.R.id.content, details).commit();
  
          getLayoutInflater().inflate(R.layout.logo, null );
      }
  
  
  }
  </code></pre>
  
  <p>PS: <code>R.layout.logo</code> is an ImageView.</p>