What is the default ScaleType for ImageView?

What is the scale type of an ImageView image? If I put an image at 400 pixels by 400 pixels on a regular screen (320x480) without specifying ScaleType, how does the image scale?

Thank.

<?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> 
+54
android
Jun 01 '10 at 17:32
source share
1 answer

FIT_CENTER :

ImageView.ScaleType FIT_CENTER

Scale an image using CENTER . From XML, use this syntax: android:scaleType="fitCenter" .

+74
Jun 01 '10 at 20:24
source share



All Articles