0
這是XML文件。奇怪我的程序在執行setContentView之後立即退出。該logcat的表現也不過如此這個xml佈局文件有什麼問題嗎?爲什麼setContentView在加載這個文件後失敗並且應用程序關閉之後關閉
線程ID = 1個線程與
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:id="@+id/SpeechResult"
android:layout_height="0dp"
android:layout_weight="1"
android:background="@drawable/rounded_edge"
android:padding="6dip"
android:hint="Waht is on your mind?"/>
<ToggleButton
android:id="@+id/ToggleRecognition"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:textOff="Start"
android:textOn="Stop"
android:onClick="onToggleRecognition"/>
</LinearLayout>