guangtouhaky 2015-01-23 04:30 采纳率: 0%
浏览 3413

binary xml file line#7:error inflating class

错误代码,然后贴上xml文件:
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity" >

<com.example.browserstation.touchmove
    android:id="@+id/view1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
     />

<Button
    android:id="@+id/button1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    android:text="Button" />


view名肯定没错,路径也没错,换另一个View就没错,换这个就错了。touchmove单独可运行

  • 写回答

2条回答 默认 最新

  • 微wx笑 优质创作者: Java技术领域 2015-01-23 05:05
    关注
    评论

报告相同问题?