Create a TranslateAnimation object, set animation prefs and set it to View object (in this example myView)
<pre style="background-image: URL(http://2.bp.blogspot.com/_z5ltvMQPaa8/SjJXr_U2YBI/AAAAAAAAAAM/46OqEP32CJ8/s320/codebg.gif); background: #f0f0f0; border: 1px dashed #CCCCCC; color: black; font-family: arial; font-size: 12px; height: auto; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;"> TranslateAnimation animation = new TranslateAnimation(Animation.RELATIVE_TO_SELF,
.setVisibility(View.VISIBLE); </pre>
0.0f,Animation.RELATIVE_TO_SELF, 0.0f,Animation.RELATIVE_TO_SELF,
1.0f,Animation.RELATIVE_TO_SELF, 0.0f);
animation.setDuration(700);
animation.setInterpolator(new OvershootInterpolator());
myView.startAnimation(animation);
myView
Note: myView can be any layout or a view
read