I have code of normally zoom in and zoom out animation between two activities, but I want something different. I have five buttons on my first activity if I click on first b
I think you have to do as follow
Put animation descriptions into res/anim folder
object.setInAnimation(AnimationUtils.loadAnimation(this, R.anim.zoom_enter));
object.setOutAnimation(AnimationUtils.loadAnimation(this, R.anim.zoom_exit));
You can use android sdk sample animations supplied by google under Apache 2.0 licence
Or refer this which uses scaling based zooming which is easier than the former
http://developer.android.com/training/animation/zoom.html