I will start off with an illustration of what I would like to achieve. I have an image that I would like to slide across the screen.
The problem is that the image is automatically adjusted to fit the aspect ratio of the screen.
I start with an ImageView
<ImageView
android:id="@+id/slidingImage"
android:src="@drawable/gazelleRunning"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
And then I set the background of the ImageView
ImageView gazelleRunning = (ImageView) findViewById(R.id.gazelleRunning);
Bitmap bitmap = BitmapFactory.decodeFile(URI_Object);
Drawable drawable = new BitmapDrawable(getResources(), bitmap);
gazelleRunning.setBackground(drawable);
The animation is no problem. Like I said, the problem is that the image is automatically adjusted to fit the aspect ratio of the screen.