What's the default ScaleType of ImageView?
Posted
by kknight
on Stack Overflow
See other posts from Stack Overflow
or by kknight
Published on 2010-06-01T17:32:48Z
Indexed on
2010/06/01
17:33 UTC
Read the original article
Hit count: 229
android
What's the default ScaleType of ImageView?If I put an image which is 400 pixels x 400 pixels on a normal screen (320x480) without specifying ScaleType, how will the image be scaled?
Thanks.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/big_image"
/>
</RelativeLayout>
© Stack Overflow or respective owner