錯誤膨脹類片段我知道錯誤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當我通過肖像和景觀模式切換時。我在用碎片。我的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>如果我通過景觀和肖像模式切換,一切都很好。但是當我點擊我的片段(我可以看到我的片段),然后切換到另一種模式時,我會得到錯誤。知道我能怎么解決嗎?在這里找到了一些答案但這些都幫不了我.。
3 回答

郎朗坤
TA貢獻1921條經驗 獲得超9個贊
<meta-data android:name="com.google.android.gms.version"android:value="@integer/google_play_services_version" />
<application>
- 3 回答
- 0 關注
- 436 瀏覽
添加回答
舉報
0/150
提交
取消