@@ -0,0 +1,3502 @@
+package com.kadam.yogesh.g_gis;%0A%0Aimport android.os.Bundle;%0Aimport android.support.design.widget.FloatingActionButton;%0Aimport android.support.design.widget.Snackbar;%0Aimport android.view.View;%0Aimport android.support.design.widget.NavigationView;%0Aimport android.support.v4.view.GravityCompat;%0Aimport android.support.v4.widget.DrawerLayout;%0Aimport android.support.v7.app.ActionBarDrawerToggle;%0Aimport android.support.v7.app.AppCompatActivity;%0Aimport android.support.v7.widget.Toolbar;%0Aimport android.view.Menu;%0Aimport android.view.MenuItem;%0A%0Apublic class MainActivity extends AppCompatActivity%0A        implements NavigationView.OnNavigationItemSelectedListener %7B%0A%0A    @Override%0A    protected void onCreate(Bundle savedInstanceState) %7B%0A        super.onCreate(savedInstanceState);%0A        setContentView(R.layout.activity_main);%0A        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);%0A        setSupportActionBar(toolbar);%0A%0A        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);%0A        fab.setOnClickListener(new View.OnClickListener() %7B%0A            @Override%0A            public void onClick(View view) %7B%0A                Snackbar.make(view, %22Replace with your own action%22, Snackbar.LENGTH_LONG)%0A                        .setAction(%22Action%22, null).show();%0A            %7D%0A        %7D);%0A%0A        DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);%0A        ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(%0A                this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);%0A        drawer.setDrawerListener(toggle);%0A        toggle.syncState();%0A%0A        NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);%0A        navigationView.setNavigationItemSelectedListener(this);%0A    %7D%0A%0A    @Override%0A    public void onBackPressed() %7B%0A        DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);%0A        if (drawer.isDrawerOpen(GravityCompat.START)) %7B%0A            drawer.closeDrawer(GravityCompat.START);%0A        %7D else %7B%0A            super.onBackPressed();%0A        %7D%0A    %7D%0A%0A    @Override%0A    public boolean onCreateOptionsMenu(Menu menu) %7B%0A        // Inflate the menu; this adds items to the action bar if it is present.%0A        getMenuInflater().inflate(R.menu.main, menu);%0A        return true;%0A    %7D%0A%0A    @Override%0A    public boolean onOptionsItemSelected(MenuItem item) %7B%0A        // Handle action bar item clicks here. The action bar will%0A        // automatically handle clicks on the Home/Up button, so long%0A        // as you specify a parent activity in AndroidManifest.xml.%0A        int id = item.getItemId();%0A%0A        //noinspection SimplifiableIfStatement%0A        if (id == R.id.action_settings) %7B%0A            return true;%0A        %7D%0A%0A        return super.onOptionsItemSelected(item);%0A    %7D%0A%0A    @SuppressWarnings(%22StatementWithEmptyBody%22)%0A    @Override%0A    public boolean onNavigationItemSelected(MenuItem item) %7B%0A        // Handle navigation view item clicks here.%0A        int id = item.getItemId();%0A%0A        if (id == R.id.nav_camera) %7B%0A            // Handle the camera action%0A        %7D else if (id == R.id.nav_gallery) %7B%0A%0A        %7D else if (id == R.id.nav_slideshow) %7B%0A%0A        %7D else if (id == R.id.nav_manage) %7B%0A%0A        %7D else if (id == R.id.nav_share) %7B%0A%0A        %7D else if (id == R.id.nav_send) %7B%0A%0A        %7D%0A%0A        DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);%0A        drawer.closeDrawer(GravityCompat.START);%0A        return true;%0A    %7D%0A%7D%0A

Add Navigation Drawer activity