`
elya_siwei
  • 浏览: 15294 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论

android.view.InflateException: Binary XML file line #7: Error inflating class Ge

阅读更多

写到手势识别的时候.

GestureOverlayView 根据自动提示,写成:

 

 <GestureOverlayView 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:layout_weight="1.0"
    android:id="@+id/gesture"
    />

 

 

运行程序报错.

android.view.InflateException: Binary XML file line #7: Error inflating class GestureOverlayView


但凡有android.view.InflateException: Binary XML file line  xxxx
这种错误,就开始检查XML是否有书写错误,可能错误提示还不够完善...找得头痛.

最后视图修改为:

 

<android.gesture.GestureOverlayView  
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:layout_weight="1.0"
    android:id="@+id/gesture"
    />

 

问题解决.

 

分享到:
评论

相关推荐

    PhoneGap Cordova 3 3配置demo

    另外又由于官网的文档漏洞百出 一直报:java lang RuntimeException:Unable to start activity ComponeInfo{com }:android view InflateException:Binary XML file line #8:Erroe inflating class org apache ...

    Fragment两种

    android.view.InflateException: Binary XML file line #7: Error inflating class fragment异常 ( 2 ) android.support.v4.app.Fragment:可以兼容到1.6的版本,不能使用标签,需要在程序中通过add或者replace的...

    recyclerview-v7.zip

    Unable to start activity ComponentInfo{com.deyi.deyijia/com.deyi.deyijia.activity.PinterestActivity}: android.view.InflateException: Binary XML file line #157: Error inflating class android.support....

    recyclerview-V7

    Unable to start activity ComponentInfo{com.deyi.deyijia/com.deyi.deyijia.activity.PinterestActivity}: android.view.InflateException: Binary XML file line #157: Error inflating class android.support....

    google-play-services.jar

    google map v2中遇见xml里frment找不到问题 可以引入这个jar包就可以了 如Caused by: android.view.InflateException: Binary XML file line #3: Error inflating class fragment

    android实现常驻通知栏遇到的问题及解决办法

    11:34.923 6387-6387/xxx E/CrashReport: android.app.RemoteServiceException: Bad notification posted from package xxx: Couldn’t inflate contentViewsandroid.view.InflateException: Binary XML file line #...

    问题:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original

    问题:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a 我的场景是 LinearLayout.LayoutParams params11 = new LinearLayout.LayoutParams(264, LinearLayout....

    ERROR/AndroidRuntime(17121)的问题解决

    在layout文件中使用自定义的View时遇到如下错误: 12-11 17:28:26.962: ERROR/AndroidRuntime(17121): android.view.InflateException: Binary XML file line #6: Error inflating class fish.apps.ipcall.controls...

    Android 兼容性问题:java.lang.UnsupportedOperationException解决办法

    android.view.InflateException: Binary XML file line #13: Error inflating class at android.view.LayoutInflater.createView(LayoutInflater.java:613) at com.android.internal.policy.impl.P

    Android编程实现自定义系统菜单背景的方法

    本文实例讲述了Android编程实现自定义系统菜单背景的方法。分享给大家供大家参考,具体如下: 不多说,上图,见代码。 package lab.sodino....import android.view.InflateException; import android.view.Lay

Global site tag (gtag.js) - Google Analytics