If you just want to put away with ActionBar, like @GabrieleMariotti suggests, you can use any of *.NoActionBar themes.
Or, if you have already known about theme and want to use NavigationUI without Toolbar, there is a way.
In your MainActivity's onCreate:
NavigationView navigationView = findViewById(R.id.nav_view);
navController = Navigation.findNavController(this, R.id.nav_host_fragment);
NavigationUI.setupWithNavController(navigationView, navController);
You can setup the navigationView like above. That's all. And don't setup appBarConfiguration like below:
drawer = findViewById(R.id.drawer_layout);
appBarConfiguration = new AppBarConfiguration.Builder(
R.id.fragment1, R.id.fragment2, R.id.fragment3
).setOpenableLayout(drawer).build();
NavigationUI.setupWithNavController(toolbar, navController, appBarConfiguration);
For you don't want toolbar, this is needless.
Without hamburger button, you can still open the drawer by swiping. If you want to have a hamburger button, place a button on the layout which is set onClickListener to open the drawer.
FloatingActionButton fabNavigation = view.findViewById(R.id.fab_navigation);
fabNavigation.setOnClickListener(view1 -> onClick());
Drawer opener method example:
public void onClick(View view) {
drawer.openDrawer(GravityCompat.START);
}
