錯(cuò)誤膨脹類片段我知道錯(cuò)誤Unable to start activity ComponentInfo{de.androidbuch.activiti/de.androidbuch.activiti.task.Activity}:
android.view.InflateException: Binary XML file line #11: Error inflating class fragment當(dāng)我通過(guò)肖像和景觀模式切換時(shí)。我在用碎片。我的XML是: <LinearLayout android:id="@+id/mainLayout"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<ListView android:id="@+id/android:list"
android:layout_height="wrap_content"
android:layout_width="fill_parent"/>
<fragment android:id="@+id/fragmentDetails"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
class="de.androidbuch.activiti.task.TaskDetailsFragment"/> </LinearLayout>如果我通過(guò)景觀和肖像模式切換,一切都很好。但是當(dāng)我點(diǎn)擊我的片段(我可以看到我的片段),然后切換到另一種模式時(shí),我會(huì)得到錯(cuò)誤。知道我能怎么解決嗎?在這里找到了一些答案但這些都幫不了我.。
3 回答

郎朗坤
TA貢獻(xiàn)1921條經(jīng)驗(yàn) 獲得超9個(gè)贊
<meta-data android:name="com.google.android.gms.version"android:value="@integer/google_play_services_version" />
<application>
- 3 回答
- 0 關(guān)注
- 439 瀏覽
添加回答
舉報(bào)
0/150
提交
取消