Using xml Syntax Highlighting
- <ImageView
- android:id="@+id/vehiclePic"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- android:background="@android:color/white"
- android:padding="8px"
- android:scaleType="centerInside"
- />
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
Pretty standard stuff. The problem is that it isn't scaling the pic correctly. The image that I am using in the imageview is quite large and I just want it to scale to fit as best as possible on the small screen. With the above code it scales the pic the the size I want but I get massive borders above and below the actual pic.
See the pic I've attached. You can see the pic I want displayed but you can also see the unused space in the imageview above and below it. That unused space stretches about 3 screens worth both up and down. Am I doing something wrong? I've tried all the different scaleTypes and nothing seems to work.

