我有一个问题,当我在某处单击或移动光标时,我的代码会自动更改。这发生在布局 XML 中。
我使用 Eclipse Juno 并插入了一个 ExpandableList。我的最小 sdk 是 14,最大是 16。
似乎只有 .xml 部分发生了变化,而不是布局。.xml 部分,如果再次打开,没问题,但它做同样的事情。
帮助?
编辑
我还注意到,当我运行代码时,可扩展列表没有显示(它只是调用布局)
XML 文件:
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:text="Large Text"
android:textAppearance="?android:attr/textAppearanceLarge" />
<ExpandableListView
android:id="@+id/expandableListView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/textView1" >
</ExpandableListView>