package ninja.lucas.theevilthatmendo;

import android.support.v4.view.GravityCompat;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;

public class MainActivity extends AppCompatActivity {

    private DrawerLayout mDrawer;
    private Toolbar toolbar;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        // Replace the action bar
        toolbar = (Toolbar) findViewById(R.id.toolbar);
        setSupportActionBar(toolbar);

        mDrawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                mDrawer.openDrawer(GravityCompat.START);
                return true;
        }

        return super.onOptionsItemSelected(item);
    }

    @Override
    protected void onPostCreate(Bundle savedInstanceState) {
        super.onPostCreate(savedInstanceState);
    }
}

@@ -32,16 +32,156 @@
 mendo;%0A%0A
+import android.support.v4.app.Fragment;%0Aimport android.support.v4.app.FragmentManager;%0Aimport android.support.design.widget.NavigationView;%0A
 import a
@@ -218,16 +218,16 @@
 Compat;%0A
-
 import a
@@ -530,16 +530,53 @@
 toolbar;
+%0A    private NavigationView nvDrawer;
 %0A%0A    @O
@@ -1301,32 +1301,32 @@
 nstanceState) %7B%0A
-
         super.on
@@ -1352,21 +1352,1605 @@
 tanceState);
+%0A%0A        nvDrawer = (NavigationView) findViewById(R.id.nvView);%0A%0A        setupDrawerContent(nvDrawer);%0A    %7D%0A%0A    private void setupDrawerContent(NavigationView navigationView) %7B%0A        navigationView.setNavigationItemSelectedListener(%0A                new NavigationView.OnNavigationItemSelectedListener() %7B%0A                    @Override%0A                    public boolean onNavigationItemSelected(MenuItem menuItem) %7B%0A                        selectDrawerItem(menuItem);%0A                        return true;%0A                    %7D%0A                %7D%0A        );%0A    %7D%0A%0A    public void selectDrawerItem(MenuItem menuItem) %7B%0A        Fragment fragment = null;%0A%0A        Class fragmentClass;%0A        switch (menuItem.getItemId()) %7B%0A            case R.id.nav_first_fragment:%0A                fragmentClass = FirstFragment.class;%0A                break;%0A            case R.id.nav_second_fragment:%0A                fragmentClass = SecondFragment.class;%0A                break;%0A            case R.id.nav_third_fragment:%0A                fragmentClass = ThirdFragment.class;%0A                break;%0A            default:%0A                fragmentClass = FirstFragment.class;%0A        %7D%0A%0A        try %7B%0A            fragment = (Fragment) fragmentClass.newInstance();%0A        %7D catch (Exception e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        FragmentManager fragmentManager = getSupportFragmentManager();%0A        fragmentManager.beginTransaction().replace(R.id.flContent, fragment).commit();%0A%0A        menuItem.setChecked(true);%0A        setTitle(menuItem.getTitle());%0A        mDrawer.closeDrawers();
 %0A    %7D%0A%7D%0A

Update MainActivity