I'm trying to move one view with animation to another, but so far nothing works. I have two views in RelativeLayout and one view should replace the other as follows: I try it but it doesnt work:
TranslateAnimation translateAnimation = new TranslateAnimation(0, second_view.getX(), 0, second_view.getY());
view.startAnimation(translateAnimation);