I am not able to put view animation for inflated layouts. I used the following code snippet
pageView.startAnimation(AnimationUtils.loadAnimation(this,R.anim.
If you're trying to animate the view when it's first created, then you either need to set the layoutAnimation XML property or call setLayoutAnimation().
If you just want to make your view look like it's moving, you need a TranslateAnimation; see this answer: https://stackoverflow.com/a/4214490/832776
Also if you'd like to repeat the animation, then call setAnimationListener() and in onAnimationEnd() just start the animation again.
If you're trying to move the view permanently, see this: http://www.clingmarks.com/how-to-permanently-move-view-with-animation-effect-in-android/400