更新____
Logcat 输出http://pastie.org/2039452
我的应用程序在调试器中停止,然后在这条线上崩溃,但这很奇怪,因为它没有错误信息,只有一个像这样的绿色箭头......
任何有关此箭头一般含义的见解将不胜感激...
这是 LayoutStudentList
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
>
<TextView
android:id="@+id/studentHeader"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:textSize="16sp"
android:text="@string/StudentListHeader"
android:layout_alignParentTop="true"
/>
<EditText
android:id="@+id/studentSearch"
android:layout_width="fill_parent"
android:layout_below="@id/studentHeader"
android:padding="10dp"
android:textSize="12sp"
android:editable="true"
android:hint="@string/StudentFilterPlaceholder"
/>
<ListView
android:id="@+id/studentListView"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/studentSearch"
android:padding="10dp"
/>
</RelativeLayout>
问题几乎肯定在我的 XML 的某个地方,因为当我用单个 textview 替换布局内容并设置它工作正常的文本时。