Eclipse와 함께 새 Android 프로젝트를 열었습니다. 레이아웃을 편집했습니다 (필자의 경우 main.xml에서). 모든 것이 좋았습니다. 프로젝트를 저장하고 다시 열면 일부 버튼을 추가하기 위해 레이아웃을 편집하고 싶습니다. 이제 AVD에서 앱을 실행하면 레이아웃이 수정되기 전에 있었던 것처럼 보입니다. a는 main.xml
을 모두 삭제하고 AVD에서 실행했습니다. 놀랍게도 오래된 레이아웃으로 잘로드되었습니다. 무슨 일이야 ??레이아웃이 업데이트되지 않습니다
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
tools:context=".BidirectionalAndroidTCPClientActivity" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<Button
android:id="@+id/connect"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="connect" />
<ToggleButton
android:id="@+id/tog1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="toggle1"
android:text="ToggleButton" />
<SeekBar
android:id="@+id/seekBar1"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<Button
android:id="@+id/button1"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="clearText"
android:text="Clear Log1" />
<Button
android:id="@+id/button2"
style="?android:attr/buttonStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="onQuit"
android:text="Exit" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/console" />
<TextView
android:id="@+id/textlog"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</LinearLayout>
감사