title: Fragment re-created on bottom navigation view item selected
body: <p>Following is my code for bottom navigation view item selected</p>
  
  <pre><code>bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {  
  @Override
  public boolean onNavigationItemSelected(@NonNull MenuItem item) {
      Fragment fragment = null;
      switch (item.getItemId()) {
          case R.id.action_one:
              // Switch to page one
              fragment = FragmentA.newInstance();
              break;
          case R.id.action_two:
              // Switch to page two
              fragment = FragmentB.newInstance();
              break;
          case R.id.action_three:
              // Switch to page three
              fragment = FragmentC.newInstance();
              break;
      }
      getSupportFragmentManager().beginTransaction().replace(R.id.container,fragment,"TAG").commit();
      return true;
  }
  });
  </code></pre>
  
  <p>Now my problem is every time fragment is re-created and don't want fragment to be recreated every time I also tried adding addToBackStack(null) but it this case on back button press keeps popping fragments from stack which I don't want.</p>
  
  <p>Is there any way to display fragments on bottom navigation bar selected without re-creating fragment</p>