Android 多屏幕尺寸下ImageView的相对布局

Android 多屏幕尺寸下ImageView的相对布局,android,android-layout,Android,Android Layout,我们正在开发一个应用程序,其中包括一个相对论窗口,其中包含多个符合较大图像的图像视图 现在看起来不错,但只适用于某些屏幕尺寸,因为我们对ImageView元素使用固定宽度。为了对齐,我们将所有图像设置为相同的宽度,因此它们可以正确对齐,只需担心高度 我们知道,如果我们想要以任何屏幕大小为目标,除了为多个DPI提供适当的资源外,我们还需要使用屏幕或容器相关的措施,例如匹配父项 问题是我们无法让match_parent在布局上正常工作 我们做错了什么?对于这样的问题有什么建议吗 Relative

我们正在开发一个应用程序,其中包括一个相对论窗口,其中包含多个符合较大图像的图像视图

现在看起来不错,但只适用于某些屏幕尺寸,因为我们对ImageView元素使用固定宽度。为了对齐,我们将所有图像设置为相同的宽度,因此它们可以正确对齐,只需担心高度

我们知道,如果我们想要以任何屏幕大小为目标,除了为多个DPI提供适当的资源外,我们还需要使用屏幕或容器相关的措施,例如匹配父项

问题是我们无法让match_parent在布局上正常工作

我们做错了什么?对于这样的问题有什么建议吗

RelativeLayout代码是

<RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="0dp"
    android:layout_marginBottom="5dp"
    android:layout_weight=".90"
    android:padding="0dp"
    tools:context="com.diapasondev.weatherclothes.WeatherClothesActivity$PlaceholderFragment" >

    <ProgressBar
        android:id="@+id/progressBar1"
        style="?android:attr/progressBarStyleLarge"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:visibility="gone" />

    <TextView
        android:id="@+id/loading_field"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@+id/progressBar1"
        android:layout_centerHorizontal="true"
        android:text="@string/loading"
        android:textAppearance="?android:attr/textAppearanceMedium"
        android:visibility="gone" />

    <ImageView
        android:id="@+id/head"
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:scaleType="fitCenter" />

    <ImageView
        android:id="@+id/face"
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        android:layout_below="@+id/head"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:scaleType="fitCenter" />

    <ImageView
        android:id="@+id/body"
        android:layout_marginTop="-15dp"
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        android:layout_below="@+id/face"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:scaleType="fitCenter" />

    <ImageView
        android:id="@+id/hands"
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        android:layout_marginTop="15dp"
        android:layout_below="@+id/face"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:scaleType="fitCenter" />

    <ImageView
        android:id="@+id/umbrella"
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        android:layout_below="@+id/body"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:scaleType="fitCenter" />

    <ImageView
        android:id="@+id/neck"
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        android:layout_below="@+id/body"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:scaleType="fitCenter" />

    <ImageView
        android:id="@+id/legs"
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        android:layout_below="@+id/body"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:scaleType="fitCenter" />

    <ImageView
        android:id="@+id/feet"
        android:layout_width="240dp"
        android:layout_height="wrap_content"
        android:layout_below="@+id/legs"
        android:layout_centerHorizontal="true"
        android:adjustViewBounds="true"
        android:scaleType="fitCenter" />
</RelativeLayout>


您面临的屏幕分辨率问题是什么?能否共享屏幕图像。我指的是屏幕的完整图像,带有您面临问题的标记。