android视图项目在屏幕上不是固定的

android视图项目在屏幕上不是固定的,android,layout,views,Android,Layout,Views,我的android项目有以下xml文件 我的问题是,列表下的按钮更改了其在列表数据上的位置 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:

我的android项目有以下xml文件

我的问题是,列表下的按钮更改了其在列表数据上的位置

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
  xmlns:android="http://schemas.android.com/apk/res/android"
  android:orientation="vertical"
  android:layout_width="match_parent"
  android:layout_height="match_parent" android:weightSum="1">
    <EditText android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@+id/EditTextId"/>
    <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:id="@+id/Id2" android:text="@string/ButtonStr"></Button>
    <ListView android:layout_height="wrap_content" android:layout_width="match_parent" android:id="@android:id/android:list"></ListView>
    <FrameLayout android:id="@+id/frameLayout1" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="0.84"></FrameLayout>
    <ImageView android:id="@+id/Id1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/button"></ImageView>

</LinearLayout>

我建议,如果您不希望按钮移动位置,请在列表周围添加滚动视图