写到手势识别的时候.
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"
/>
问题解决.
分享到:
相关推荐
另外又由于官网的文档漏洞百出 一直报:java lang RuntimeException:Unable to start activity ComponeInfo{com }:android view InflateException:Binary XML file line #8:Erroe inflating class org apache ...
android.view.InflateException: Binary XML file line #7: Error inflating class fragment异常 ( 2 ) android.support.v4.app.Fragment:可以兼容到1.6的版本,不能使用标签,需要在程序中通过add或者replace的...
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....
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 map v2中遇见xml里frment找不到问题 可以引入这个jar包就可以了 如Caused by: android.view.InflateException: Binary XML file line #3: Error inflating class fragment
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 thread that created a 我的场景是 LinearLayout.LayoutParams params11 = new LinearLayout.LayoutParams(264, LinearLayout....
在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.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编程实现自定义系统菜单背景的方法。分享给大家供大家参考,具体如下: 不多说,上图,见代码。 package lab.sodino....import android.view.InflateException; import android.view.Lay