title: No view found for fragment in 1. Nav Drawer
body: <p>Hello guys I created 2 navigation drawers and like 2 main activties in my app (1 for logged users and other for not logged users). Now when user Login and want to see news it works great it open a new fragment where is a list of news and when user choose particular news it open it's details and it's working awesome. But problem is when I open news detail in activity for not logged users. I manage to isolate a problem it's here.</p>
  
  <pre><code>public void onItemClick(AdapterView&lt;?&gt; parent, View view, int      position, long id) {
      FragmentManager fm = getFragmentManager();
      FragmentTransaction ft = fm.beginTransaction();
      Fragment fragment = new DetailView();
      Integer ID;
      ID = listNovosti.get(position).getId();
      Bundle bundle = new Bundle();
      bundle.putInt("ID", ID);
      fragment.setArguments(bundle);
      ft.replace(R.id.fragmentlayout, fragment);
      ft.commit();
  }
  </code></pre>
  
  <p>Problem is in this line :</p>
  
  <pre><code>ft.replace(R.id.fragmentlayout, fragment);
  </code></pre>
  
  <p>I'm using 2 frags layout 1 for logged users (fragmentprelayout) and second is fragmentlayout.</p>
  
  <p>How can i adjust or do some magic around that ft.replace so that It can choose between those 2 layouts?</p>