If I understand your situation correctly, then you are mistaken. FrameLayout pushes it on the stack, not side by side. Thus, they are not displayed off-screen, imageView2 is located right behind imageView1. And to show this, you must bring it to the fore.
I would suggest you look at the ViewSwitcher / ViewAnimator layouts. I think they will suit your needs.
source
share