How do I display an image with the following configuration in Android?
- Retain original aspect ratio (the image can be scaled, but not stretched)
- Fill the width of the parent
- Aligned to the bottom of the parent
The following does not work:
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:layout_alignParentBottom="true"
android:src="@drawable/background" />
Using the above xml the ImageView takes the width of the parent, but the image inside the ImageView does not.