[Solved] Image slider inside fragment child using ViewFlipper


Since you are using it on fragment replace this line

 fade_in = AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_in);
fade_out = AnimationUtils.loadAnimation(getActivity(), android.R.anim.fade_out);

with this:

 fade_in = AnimationUtils.loadAnimation(this, android.R.anim.fade_in);
fade_out = AnimationUtils.loadAnimation(this, android.R.anim.fade_out);

OR With

 fade_in = AnimationUtils.loadAnimation(getAppicationContext, android.R.anim.fade_in);
    fade_out = AnimationUtils.loadAnimation(getAppicationContext, android.R.anim.fade_out);

solved Image slider inside fragment child using ViewFlipper