title: Add 2 of the Same Fragments to the Same Container
body: <p>I'm trying to, as you can see in the title, add 2 of the same fragments to the same container. I'm using a fragmentransaction to add my fragment. It works the first time, but when I try to add a second fragment, the fragment is replaced. </p>
  
  <p>Here's my addition code:</p>
  
  <pre><code>public void addNewCategoryFragment(Category c) {
  FragmentManager fragmentManager = getFragmentManager();
  FragmentTransaction fragmentTransaction = fragmentManager
          .beginTransaction();
  CategoryFragment categoryFragment = new CategoryFragment(c.name);
  fragmentTransaction.add(R.id.fragment_root, categoryFragment, String.valueOf(c.getID()));
  fragmentTransaction.commit();
  }
  </code></pre>
  
  <p>Here's the xml that I'm trying to add the fragment to:</p>
  
  <pre><code>&lt;LinearLayout 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"
       android:background="@drawable/school"
       android:orientation="vertical"
       tools:context=".MainActivity" &gt;
  
  &lt;LinearLayout
      android:id="@+id/fragment_root"
      android:layout_width="match_parent"
      android:layout_height="413dp"
      android:orientation="vertical" &gt;
  &lt;/LinearLayout&gt;
  
  &lt;FrameLayout
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" &gt;
  
  &lt;Button
      android:id="@+id/submit_button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom|right"
      android:text="Submit" /&gt;
  
  &lt;Button
      android:id="@+id/new_category_button"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_gravity="bottom|left"
      android:onClick="createNewCategory"
      android:text="New Category" /&gt;
  &lt;/FrameLayout&gt;
  </code></pre>