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; //from ww w .ja v a 2 s . c o m import android.os.Bundle; public class FirstDrawerActivity 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("first")) .commit(); } overridePendingTransition(0, 0); } @Override protected int getSelfNavDrawerItem() { return NAVDRAWER_ITEM_FIRST; } @Override protected void onResume() { super.onResume(); invalidateOptionsMenu(); } }