是有可能,我ImageView
将适合于所有的屏幕尺寸没有图像显得捉襟见肘?
我尝试了所有类型的规模与它不断变化的背景和src fill_parent
> wrap_content
但仍。 如果图像是不小的,它只是看起来拉伸..
例:
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scaleType="centerInside"
android:adjustViewBounds="true"
android:background="@drawable/background" />
<ImageView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:adjustViewBounds="true"
android:background="@drawable/background" />
这些2适合的宽度,但该图像被拉伸..但是当我改变它SRC的图像,则中心和小。