content: package com.adevinta.android.barista.sample;
  
  import android.os.Bundle;
  import android.view.MenuItem;
  import android.view.View;
  import androidx.annotation.NonNull;
  import androidx.appcompat.app.AppCompatActivity;
  import androidx.appcompat.widget.Toolbar;
  import androidx.core.view.GravityCompat;
  import androidx.drawerlayout.widget.DrawerLayout;
  import com.google.android.material.navigation.NavigationView;
  
  public class NavigationDrawerActivity extends AppCompatActivity
      implements NavigationView.OnNavigationItemSelectedListener {
  
    @Override
    protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_navigation_drawer);
  
      Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
      setSupportActionBar(toolbar);
  
      final DrawerLayout drawerLayout = (DrawerLayout) findViewById(R.id.drawer);
  
      toolbar.setNavigationIcon(R.drawable.ic_action_menu);
      toolbar.setNavigationOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {
          drawerLayout.openDrawer(GravityCompat.START);
        }
      });
    }
  
    @Override
    public boolean onNavigationItemSelected(@NonNull MenuItem item) {
      return false;
    }
  }
  