title: No view found for id 0x7f070000 for fragment
body: <p>I get this error when I try to load my <code>Fragment</code> in my <code>ActionBar</code>. </p>
  
  <blockquote>
    <p>Caused by: java.lang.IllegalArgumentException: No view found for id
    0x7f070000 for fragment HomeFragment{4100e030 #0 id=0x7f070000}</p>
  </blockquote>
  
  <pre><code>public class HomeFragment extends Fragment {    
      @Override
      public View onCreateView(LayoutInflater inflater, 
                    ViewGroup container, Bundle savedInstanceState) {
          return inflater.inflate(R.layout.home, container, false);
      }    
  }
  </code></pre>
  
  <p>The below is my mainActivity</p>
  
  <pre><code>    @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_prime_mobile_home);
  
          final ActionBar actionBar = getActionBar();
          actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);
  
          Tab homeTab = actionBar.newTab();
          homeTab.setText("Home");
          homeTab.setIcon(R.drawable.home);
  
          Fragment homeFragment = new HomeFragment();
  
          homeTab.setTabListener(new MyTabsListener(homeFragment));
  
          actionBar.addTab(homeTab);
  
      }
  </code></pre>
  
  <p>MainActivity XML</p>
  
  <pre><code>&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" &gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>