我看了很多关于Stackoverflow的问题,并尝试了很多解决方法,但仍然无法使用。调整图像大小以适合Imageview
我想实现什么:
但我实现这一目标:
这是我目前的XML代码:
<ImageView
android:id="@+id/image"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:layout_below="@+id/text"
android:layout_gravity="center"
android:adjustViewBounds="true"
android:scaleType="centerInside"
android:src="@drawable/ic_action_search" />
如何去使用它吗?是否有任何教程或示例代码?因为我正在使用它在lazyload类的listview中加载图像。谢谢! – MrYanDao 2012-08-07 11:55:00
对不起没有意识到你使用的是一个listview,可能不是最好的选择(由于垂直滚动)。 如果您看一下绘图和缩放代码,它应该可以帮助您。 – Ljdawson 2012-08-07 12:09:38
好吧,会好的!非常感谢^^ – MrYanDao 2012-08-07 12:11:34