clarification on static vs dynamic fragment
<p>Good day, trying to clarify this: if i have this layout for a portrait layout</p>

<p>main.xml:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;fragment
        android:id="@+id/configFragment_id"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:name="com.example.settingsFragment"&gt;
&lt;/fragment&gt;
</code></pre>

<p></p>

<p>and this for landscape(mainly for tablets), main.xml:</p>

<pre><code>&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"&gt;
    &lt;fragment
        android:id="@+id/configFragment_id"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:name="com.example.SettingsFragment" &gt;&lt;/fragment&gt;

        &lt;fragment
        android:id="@+id/detailFragment_id"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:name="com.Example.DetailFragment" &gt;
        &lt;!-- Preview: layout=@layout/details --&gt;
    &lt;/fragment&gt;

&lt;/LinearLayout&gt;
</code></pre>

<p>now within my SettingFragment, i implement a button to go to the DetailFragment:</p>

<pre><code>DetailFragment fragment = (DetailFragment)getActivity().getSupportFragmentManager().findFragmentById(R.id.detailFragment_id);
            FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
            if (fragment != null &amp;&amp; fragment.isInLayout()) {
                DetailFragment detailfragment = new WallpaperFragment();
                fragmentTransaction.add(R.id.detailFragment_id, detailfragment);
                fragmentTransaction.addToBackStack(null);
                fragmentTransaction.commit();
            }else{
                Intent intent = new Intent(getActivity().getApplicationContext(),DetailActivity.class);
                startActivity(intent);
            }
</code></pre>

<p>Am i now implementing a dynamic fragment or am i still using static fragment?.. or do i only use dynamic fragment when i use a viewgroup like FrameLayout in place of the fragment tag element?</p>

<p>Idea is to have a single pane for phones and multi-pane for tablets.I know its a bad idea to mix static and dynamic fragments, but its kind of confusing. Thank you.</p>
