Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class FragmentBase extends SherlockFragment
- {
- @Override
- public Animation onCreateAnimation(int transit, boolean enter, int nextAnim)
- {
- Animation anim;
- if (enter)
- {
- anim = AnimationUtils.loadAnimation(this.getActivity(), R.anim.fragment_enter);
- }
- else
- {
- anim = AnimationUtils.loadAnimation(this.getActivity(), R.anim.fragment_exit);
- }
- anim.setAnimationListener(new AnimationListener()
- {
- public void onAnimationEnd(Animation animation)
- {
- FragmentBase.this.onFragmentEndAnimation();
- }
- public void onAnimationRepeat(Animation animation)
- {
- }
- public void onAnimationStart(Animation animation)
- {
- }
- });
- return anim;
- }
- protected void onFragmentEndAnimation()
- {
- //To Override
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement