0
我不明白如何在android中正确缩放图像。 我有一个640 * 125像素的iPhone应用程序的图片。我需要在 中使用这个Android应用程序,但我不知道如何正确缩放它。如何正确缩放Android应用程序的图像?
在下面的图片中,我使用'FitEnd'作为ScaleType,除了高度为 以外,这看起来应该是大概两倍的高度(它应该只与灰色图形的最高部分一样高)。
我该如何解决这个问题?
编辑:包括的.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ViewFlipper
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/buttonrow" >
<ViewFlipper
android:id="@+id/flipper"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<include
android:id="@+id/first"
layout="@layout/activity_events" />
<include
android:id="@+id/second"
layout="@layout/event_detail" />
</ViewFlipper>
<include
android:id="@+id/second"
layout="@layout/event_detail" />
</ViewFlipper>
<RelativeLayout
android:id="@+id/buttonrow"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:scaleType="fitEnd"
android:src="@drawable/bottombar" />
</RelativeLayout>
</RelativeLayout>
的形象透明背景,我已经编辑我的职务,并包含.xml文件。 – OriginalUtter