Android Open Source - Navigation-drawer-a-la-Google Second Drawer Activity






From Project

Back to project page Navigation-drawer-a-la-Google.

License

The source code is released under:

Apache License

If you think the Android project Navigation-drawer-a-la-Google listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package info.korzeniowski.activitydrawersample;
//w  w  w. j a va  2s  .c  o  m
import android.os.Bundle;

public class SecondDrawerActivity extends BaseDrawerActivity {

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

        if (isFinishing()) {
            return;
        }

        setContentView(R.layout.activity_simple);

        if (null == savedInstanceState) {
            getSupportFragmentManager().beginTransaction()
                    .replace(R.id.container, SimpleFragment.newInstance("second"))
                    .commit();
        }

        overridePendingTransition(0, 0);
    }

    @Override
    protected int getSelfNavDrawerItem() {
        return NAVDRAWER_ITEM_SECOND;
    }

    @Override
    protected void onResume() {
        super.onResume();
        invalidateOptionsMenu();
    }
}




Java Source Code List

com.google.samples.apps.iosched.ui.widget.BezelImageView.java
com.google.samples.apps.iosched.ui.widget.ScrimInsetsScrollView.java
com.google.samples.apps.iosched.util.AccountUtils.java
com.google.samples.apps.iosched.util.LoginAndAuthHelper.java
com.google.samples.apps.iosched.util.PrefUtils.java
com.google.samples.apps.iosched.util.UIUtils.java
info.korzeniowski.activitydrawersample.BaseDrawerActivity.java
info.korzeniowski.activitydrawersample.FirstDrawerActivity.java
info.korzeniowski.activitydrawersample.SecondDrawerActivity.java
info.korzeniowski.activitydrawersample.SettingsActivity.java
info.korzeniowski.activitydrawersample.SimpleFragment.java
info.korzeniowski.activitydrawersample.ThirdDrawerActivity.java