Back to project page Navigation-drawer-a-la-Google.
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.
package info.korzeniowski.activitydrawersample; // w w w .ja va 2 s.c om import android.os.Bundle; public class ThirdDrawerActivity 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("third")) .commit(); } overridePendingTransition(0, 0); } @Override protected int getSelfNavDrawerItem() { return NAVDRAWER_ITEM_THIRD; } @Override protected void onResume() { super.onResume(); invalidateOptionsMenu(); } }