@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_parallax);

    if (savedInstanceState == null) {
      getSupportFragmentManager().beginTransaction()
          .add(R.id.content, new ParallaxFragment())
          .commit();
    }
  }
@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_parallax);

    if (savedInstanceState == null) {
      getSupportFragmentManager().beginTransaction()
          .add(R.id.content, new ParallaxFragment())
          .commit();
    }
  }
@ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( R . layout . activity_parallax ) ; if ( savedInstanceState == null ) { getSupportFragmentManager ( ) . beginTransaction ( ) . add ( R . id . content , new ParallaxFragment ( ) ) . commit ( ) ; } }
}
}