Back to project page android-fb-like-slideout-navigation.
The source code is released under:
Apache License
If you think the Android project android-fb-like-slideout-navigation 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 com.korovyansk.android.sample.slideout; /*w w w. ja v a 2 s . c om*/ import android.app.Activity; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.util.TypedValue; import android.view.MenuItem; import com.korovyansk.android.slideout.SlideoutActivity; public class SampleActionbarActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if(Build.VERSION.SDK_INT < Build.VERSION_CODES.HONEYCOMB){ finish(); } setContentView(R.layout.sample_actionbar); } @Override public boolean onOptionsItemSelected(MenuItem item) { if(item.getItemId() == android.R.id.home){ int width = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 40, getResources().getDisplayMetrics()); SlideoutActivity.prepare(SampleActionbarActivity.this, R.id.inner_content, width); startActivity(new Intent(SampleActionbarActivity.this, MenuActivity.class)); overridePendingTransition(0, 0); } return true; } }