Java eclipse和布局的问题

Java eclipse和布局的问题,java,android,eclipse,layout,android-2.2-froyo,Java,Android,Eclipse,Layout,Android 2.2 Froyo,当我更改layout文件夹(介质设备)中的某些内容并返回layout xlarge文件夹时,某些值会更改 换句话说,当我在layout文件夹中更改一个文件时,layout xlarge文件夹中的另一个文件也更改了,这是一个无限循环,我无法设置正确分辨率的值。我怎样才能解决这个问题?这是什么 例如,这两个变化: 在布局文件夹中: <AutoCompleteTextView android:id="@+id/atxt" android:layout_width="250dp"

当我更改layout文件夹(介质设备)中的某些内容并返回layout xlarge文件夹时,某些值会更改

换句话说,当我在layout文件夹中更改一个文件时,layout xlarge文件夹中的另一个文件也更改了,这是一个无限循环,我无法设置正确分辨率的值。我怎样才能解决这个问题?这是什么

例如,这两个变化: 在布局文件夹中:

<AutoCompleteTextView android:id="@+id/atxt"
        android:layout_width="250dp"
        android:layout_height="57dp"
        android:layout_marginTop="70dp"
        android:layout_marginLeft="10dp" android:gravity="left" android:textSize="35dp"/>

改为:

<AutoCompleteTextView android:id="@+id/atxt"
        android:layout_width="410dp"
        android:layout_height="57dp"
        android:layout_marginTop="100dp"
        android:layout_marginLeft="10dp" android:gravity="left" android:textSize="35dp"/>

放置所有值​​在维度中。 例如res/values/dimen.xml


250dp
res/values xlarge/dimen.xml


410dp
并将layout.xml设置为以下atxt_width-变量:

@dimen/atxt_width” android:layout_height=“57dp” android:layout_marginTop=“70dp” android:layout\u marginLeft=“10dp”android:gravity=“left”android:textSize=“35dp”/

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <dimen name="atxt_width">250dp</dimen>
</resources>
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <dimen name="atxt_width">410dp</dimen>
</resources>