我想缩放从SD卡加载到图像视图的图像。如何将从SD卡加载的图像缩放到图像视图?
问题是每当我从SD卡加载图像作为全屏幕,我已经设置所有参数fill_parent viewbounds scaletype等按其他问题。
应该怎么做?
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignBottom="@+id/Frame"
android:layout_alignLeft="@+id/Load1"
android:adjustViewBounds="true"
android:cropToPadding="true"
android:scaleType="fitXY"
android:src="@android:drawable/alert_light_frame" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="14dp"
android:scaleType="fitXY"
android:src="@android:drawable/alert_light_frame" />
这是我的图像视图代码u能告诉我什么改变,使图像根据ImageView的大小
你能还添加代码,你怎么把它变成一个'ImageView'? – tolgap 2012-08-04 23:10:42