安卓:在类片段异常充气 [英] Android:Inflate Exception in the class fragment

查看:176
本文介绍了安卓:在类片段异常充气的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用碎片在我的code..After我点击的片段,并试图使屏幕方向我得到了一个错误,如下面的,...

I trying to use fragments in my code..After i clicked the fragments and tries to make screen orientation i got an error like below,...

Unable to start activity ComponentInfo{com.example.frag/com.example.frag.Activity}: android.view.InflateException: Binary XML file line #11: Error inflating class fragment

我的XML

<LinearLayout android:id="@+id/linear" 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/frag" android:layout_height="fill_parent" android:layout_width="fill_parent" class="com.example.frag.MyFragment"/> 

推荐答案

这是你给的信息有限,它看起来像你有同样的问题解决中的这个职务。

By the limited information you're giving, it looks like you're having the same problem addressed in this post.

这篇关于安卓:在类片段异常充气的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆