Is there any way to Zoom-in and Zoom-out an ImageView
continuously in Android. I tried using the below code, but only one of the Zoom function is working.
You can use something like below and as Sanket mentioned
Zommin.xml
Zoomout.xml
And the code :
zoomin.setAnimationListener(new Animation.AnimationListener() {
@Override
public void onAnimationStart(Animation arg0) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationRepeat(Animation arg0) {
// TODO Auto-generated method stub
}
@Override
public void onAnimationEnd(Animation arg0) {
imageView.startAnimation(zoomout);
}
});