How can I get another view from one view using the zoom animation? The problem is that I have two views, one is smaller in size, the second is larger, it is necessary for the second to smoothly transfer to the first. I did this with the help of animation, but the problem is that when I increase the view to the desired size, the view then shifts to the left, I think the problem is in the animation settings. Here is the code with which I created the animation.
animZoom = new ScaleAnimation(1, 0.95f, 1, 1.15f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); animZoom.initialize(firstView.getWidth(), firstView.getHeight(), getWidth(), getHeight()); animZoom.setDuration(5500);