I'm developing an Android 2.2 application.
I have a linearlayout with a textview, a button and an ImageView.
I want to set this imageview outside of the screen and set an animation to move it from left to right.
I want to simulate a ship moving from left to right. The user will see it appears from left side of the screen and disappears from right side.
I know I can use AbsoluteLayout to set a layout_x for ImageView, but I don't want to set layout_x and layout_y for the others views (textview and button), because they are centred on the screen.
This is how I have solved my problem: