title: how to remove the floating button from navigation drawer?
body: <p>how to remove the floating button from navigation drawer in android studio?<br>
  is it safe to remove this code from the main activity?</p>
  
  <pre><code> FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
   fab.setOnClickListener(new View.OnClickListener() {
   @Override
   public void onClick(View view) {
   Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
   .setAction("Action", null).show();
   }
   });
  </code></pre>