title: Exception when replacing Fragament from within fragment
body: <p>I have an Activity with a FrameLayout for the fragment.
  I add the fragment in the standard way:</p>
  
  <pre><code>    FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
      ProfileFragmentFirst profileFragmentFirst = new ProfileFragmentFirst();
      Bundle args = new Bundle();
      args.putSerializable(ExtrasTags.ARG_PROFILE_OBJECT, profileObject);
      profileFragmentFirst.setArguments(args);
      transaction.replace(R.id.fragment_container, profileFragmentFirst);
      transaction.commit();
  </code></pre>
  
  <p>This works perfectly with no problems.</p>
  
  <p>Within the fragment I have a button which, when clicked, needs to replace the currently active fragment with another. 
  It calls a method in the activity to do this:</p>
  
  <pre><code>    @Override
  public void startFragment(Fragment fragment) {
      FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
      transaction.replace(R.id.fragment_container, fragment);
      transaction.addToBackStack(null);
      transaction.commit();
  }
  </code></pre>
  
  <p>When I do that the app fails with the following error</p>
  
  <pre><code>java.lang.IllegalArgumentException: No view found for id 0x7f0d00cb (com.digle.android:id/fragment_container) for fragment ProfileBadgesFragment{2239633d #1 id=0x7f0d00cb}
  </code></pre>
  
  <p>So, it claims, it can not find the FrameLayout for the fragment even though I used it earlier! 
  A little more searching and I discovered that it is looking inside the Fragment layout for the layout instead of inside the Activity (I proved this by adding a FrameLayout into the fragment layout and lo-and-behold my second fragment appeared there).</p>
  
  <p>However, this code works perfectly elsewhere in my app.</p>
  
  <p>The MAJOR difference between the two cases is that in this case the first fragment uses Data Binding whereas in the case where it works it doesn't.
  The buttons I click are bound to an event object.</p>
  
  <p>For example:</p>
  
  <pre><code>&lt;Button
  ..
  ..
  android:onClick="@{clicksListener.onBadgesClick}"
  /&gt;
  </code></pre>
  
  <p>With: </p>
  
  <pre><code>       public class ClicksListener {
          public void onBadgesClick(View view) {
              Log.d(TAG, "onBadgesClick");
              ProfileBadgesFragment profileBadgesFragment = new ProfileBadgesFragment();
              Bundle args = new Bundle();
              args.putSerializable(ExtrasTags.ARG_PROFILE_BADGES, profileObject.userBadgesEntity);
              profileBadgesFragment.setArguments(args);
              startFragment(profileBadgesFragment);
          }
    }
  </code></pre>
  
  <p>And, of course, the binding. The click works perfectly but, as I said earlier, it looks inside the fragment layout instead of the activity layout.</p>
  
  <p>Using build-tools 23.0.3 and everything else is up-to-date.</p>