adjustViewBounds不适用于旧版Android

时间:2014-10-25 16:02:12

标签: android eclipse image

我的分辨率为400x760像素的长图像,我用android:adjustViewBounds="true"将其放在imageview中,因此周围没有空白区域,图像会拉伸。它适用于我的4.4 Android,但是当我在4 Android上试用它时,它很小而且没有伸展。即使在Eclipse Graphical Layout选项卡中,当我有版本19时,它工作正常,但当我将其更改为版本17(Android 4.2.2。)时,它很小。那么我怎样才能让它在老式机器人上工作呢?

编辑:拉伸正在进行,因为我有adjustViewBounds =" true",但这里是XML代码:

<ImageView 
    android:id="@+id/calculations"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:adjustViewBounds="true"
    android:src="@drawable/calculations" /> 

0 个答案:

没有答案
相关问题