use of com.kogitune.activity_transition.fragment.ExitFragmentTransition in project PreLollipopTransition by takahirom.
the class SubFragment method onCreateView.
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_sub, container, false);
final ExitFragmentTransition exitFragmentTransition = FragmentTransition.with(this).interpolator(new LinearOutSlowInInterpolator()).to(v.findViewById(R.id.sub_imageView)).start(savedInstanceState);
exitFragmentTransition.exitListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
Log.d("TAG", "onAnimationStart: ");
}
@Override
public void onAnimationEnd(Animator animation) {
Log.d("TAG", "onAnimationEnd: ");
}
}).interpolator(new FastOutSlowInInterpolator());
exitFragmentTransition.startExitListening();
return v;
}
use of com.kogitune.activity_transition.fragment.ExitFragmentTransition in project PreLollipopTransition by takahirom.
the class EndFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.fragment_end, container, false);
final ExitFragmentTransition exitFragmentTransition = FragmentTransition.with(this).interpolator(new LinearOutSlowInInterpolator()).to(v.findViewById(R.id.fragment_imageView)).start(savedInstanceState);
exitFragmentTransition.exitListener(new AnimatorListenerAdapter() {
@Override
public void onAnimationStart(Animator animation) {
Log.d("TAG", "onAnimationStart: ");
}
@Override
public void onAnimationEnd(Animator animation) {
Log.d("TAG", "onAnimationEnd: ");
}
}).interpolator(new FastOutSlowInInterpolator());
exitFragmentTransition.startExitListening();
return v;
}
use of com.kogitune.activity_transition.fragment.ExitFragmentTransition in project PreLollipopTransition by takahirom.
the class SupportEndFragment method onCreateView.
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View v = inflater.inflate(R.layout.support_fragment_end, container, false);
final ExitFragmentTransition exitFragmentTransition = FragmentTransition.with(this).interpolator(new FastOutSlowInInterpolator()).to(v.findViewById(R.id.fragment_imageview)).start(savedInstanceState);
exitFragmentTransition.startExitListening();
return v;
}
Aggregations