title: How to open a fragment on click of a button?
body: <p>Hey Guys I know its very silly question but i'm facing it from last few days</p>
  
  <p>This is my click event</p>
  
  <pre><code>FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
  fab.setOnClickListener(new View.OnClickListener() {
      @Override
      public void onClick(View view) {
          Fragment newCase = new NewCase();
          FragmentTransaction transaction = getFragmentManager().beginTransaction();
  
          // What to put in the ? marked argument?
          //What is fragment container id?
          transaction.replace(?, newCase );    
  
          transaction.addToBackStack(null);          
          transaction.commit();
      }
  });
  </code></pre>
  
  <p>And this is my fragment class</p>
  
  <pre><code>public class NewCase extends Fragment {}
  </code></pre>
  
  <p>Now let me know how to open fragment class with xml view in android?</p>
  
  <p>Thanks in advance</p>