android开发中error: Error parsing XML: not well-formed (invalid token)

请检查出现问题的这个控件的格式,比如这样:

< com.view.MyHorizontalScrollView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    style="@style/scrollView_style"
    >

“<” 与view声明之间不要有空格,删除空格就OK了。

<com.view.MyHorizontalScrollView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    style="@style/scrollView_style"
    >

猜你喜欢

转载自blog.csdn.net/u012782882/article/details/50885650