is it possible that my ImageView
will fit to all screen sizes without the image look stretched?
i tried all scale types changing it to background and src with fill_parent
> wrap_content
but still. if the image is not smaller it just looks stretched..
example:
<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" />
these 2 fits the width but the image is stretched.. but when i change it to src the image is just centered and small.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…