How do I get my relative layout to display my image view like this:
In
Set scalexy = true
in ImageView
Set the ImageView
layout parameters to match_parent
and set scale type to an appropriate scale type which fulfills your needs:
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentLeft="true"
android:scaleType="centerCrop"
android:layout_alignParentTop="true" android:src="@drawable/background_race_light"/>
Add a scale type to your imageview. There are several types. The one you need is
android:scaleType="center"
This page will help explain all the different types.