Back to project page mint.
The source code is released under:
GNU General Public License
If you think the Android project mint 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.slidingmenu.example.anim; //from www. j ava 2 s . co m import android.os.Bundle; import android.view.Menu; import com.slidingmenu.example.BaseActivity; import com.slidingmenu.example.R; import com.slidingmenu.example.SampleListFragment; import com.slidingmenu.example.R.id; import com.slidingmenu.example.R.layout; import com.slidingmenu.example.R.menu; import com.slidingmenu.lib.SlidingMenu; import com.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); } }