title: All but one fragments in activity are blank
body: <p>I'm trying to build a user screen with several dynamically loaded parts, so I created an activity, added some other static content and 5 fragments in design view. For each of the fragments I created a new activity like this:</p>
  
  <pre><code>import android.os.Bundle;
  import android.support.annotation.Nullable;
  import android.support.v4.app.Fragment;
  import android.view.LayoutInflater;
  import android.view.View;
  import android.view.ViewGroup;
  
  public class fragmentX extends Fragment {
  
  @Nullable
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View view= inflater.inflate(R.layout.activity_registration_picker_fragment, container, false);
      return view;
  }
  }
  </code></pre>
  
  <p>The first fragment is visible all of the time and it works. There I have a webview and no issues.</p>
  
  <p>Below I have 4 checkboxes and e.g. if the user clicks checkbox1 fragment2 will be displayed. I am able to show or hide the fragments using</p>
  
  <pre><code>FragmentManager fm = getSupportFragmentManager();
  Fragment fr = fm.findFragmentById(R.id.fragmentX);
  FragmentTransaction ft = fm.beginTransaction();
  ft.show(fr); // or ft.hide(fr);
  ft.commit();
  </code></pre>
  
  <p>unfortunately the content of fragments 2-5 is not visible, there I only get a large blank space.</p>
  
  <p>I also tried creating frameLayouts as placeholders and adding the fragments dynamically using</p>
  
  <pre><code>fr.add(R.id.myPlaceholderX,new fragmentX)
  </code></pre>
  
  <p>with the same result. </p>
  
  <p>Any hints what I'm doing wrong?</p>
  
  <p>Thanks in advance, Christian :)</p>