ImageView不会填满整个宽度

Van*_*nel 2 android android-layout

我正在为多个设备开发Android 2.2应用程序,我的图像有问题.

这是我的布局:

<?xml version="1.0" encoding="utf-8"?>
    <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/scrollView1"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <ImageView
            android:id="@+id/imageView1"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:contentDescription="@string/layout_empty"
            android:src="@drawable/faqs" />

    </ScrollView>
Run Code Online (Sandbox Code Playgroud)

这就是我在平板电脑上看到的内容:

在此输入图像描述

它在我的HTC Desire上看起来很完美.

怎么了?

K_A*_*nas 8

添加android:scaleType="fitXY"到您的ImageView