Back to project page SlidingMenuLibrary.
The source code is released under:
Apache License
If you think the Android project SlidingMenuLibrary 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.jeremyfeinstein.slidingmenu.example.anim; /* w w w .ja v a 2s . c o m*/ import android.os.Bundle; import android.view.Menu; import com.jeremyfeinstein.slidingmenu.example.BaseActivity; import com.jeremyfeinstein.slidingmenu.example.R; import com.jeremyfeinstein.slidingmenu.example.SampleListFragment; import com.jeremyfeinstein.slidingmenu.example.R.id; import com.jeremyfeinstein.slidingmenu.example.R.layout; import com.jeremyfeinstein.slidingmenu.example.R.menu; import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu; import com.jeremyfeinstein.slidingmenu.lib.SlidingMenu.CanvasTransformer; public abstract class CustomAnimation extends BaseActivity { private CanvasTransformer mTransformer; public CustomAnimation(int titleRes, CanvasTransformer transformer) { super(titleRes); mTransformer = transformer; } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // set the Above View setContentView(R.layout.content_frame); getSupportFragmentManager() .beginTransaction() .replace(R.id.content_frame, new SampleListFragment()) .commit(); SlidingMenu sm = getSlidingMenu(); setSlidingActionBarEnabled(true); sm.setBehindScrollScale(0.0f); sm.setBehindCanvasTransformer(mTransformer); } }