【发布时间】:2011-02-26 11:20:15
【问题描述】:
ImageView的默认ScaleType是什么?如果我在普通屏幕(320x480)上放置一个400像素x 400像素的图像而不指定ScaleType,图像将如何缩放?
谢谢。
<?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>
【问题讨论】:
-
如果另一个问题是在 2 年后提出的,为什么会被标记为重复?更不用说循环引用了……
-
@p.s.w.g 你能把它取消标记为重复吗?另一个问题是在这个问题之后大约 2.5 年提出的。其他问题的链接是stackoverflow.com/questions/13828720/…
标签: android