请检查出现问题的这个控件的格式,比如这样:
< 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"
>