Assuming I have a gallery, and each images in it, has varying dimensions. The ImagePreview (an ImageView object) which has the following config.
Using xml Syntax Highlighting
- <ImageView
- android:id="@+id/WallpaperPreview"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- />
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
What I want is for this ImageView to auto resize its height, but the width is the maximum width of the screen, so the aspect ratio is correct. Problem is, currently the images stretches either from height or width.
Thanks in advance.


