private TranslateAnimation inAnimation, outAnimation;
inAnimation = new TranslateAnimation(80,0, 0, 0);
inAnimation.setDuration(50);
inAnimation.setFillBefore(true);
inAnimation.setFillAfter(true);
outAnimation = new TranslateAnimation(0,80, 0, 0);
outAnimation.setDuration(50);
outAnimation.setFillBefore(true);
outAnimation.setFillAfter(true);
LinearLayout ll=(LinearLayout)findViewById(R.id.linearLayoutamin);
ll.startAnimation(outAnimation);