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.jav a 2 s . co m*/ import android.annotation.TargetApi; import android.app.Activity; import android.content.Intent; import android.os.Build; import android.os.Bundle; import android.util.TypedValue; import android.view.View; import com.korovyansk.android.slideout.SlideoutActivity; public class SampleActivity extends Activity { @TargetApi(11) @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.sample); if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB){ getActionBar().hide(); } findViewById(R.id.sample_button).setOnClickListener( new View.OnClickListener() { @Override public void onClick(View v) { int width = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 40, getResources().getDisplayMetrics()); SlideoutActivity.prepare(SampleActivity.this, R.id.inner_content, width); startActivity(new Intent(SampleActivity.this, MenuActivity.class)); overridePendingTransition(0, 0); } }); } }