error error parsing xml unbound prefix
2014-12-12 15:22
302 查看
多加了一个app:属性,报错:error error parsing xml unbound prefix。
这种情况往往是没有指明命名空间,需添加一条
xmlns:app="http://schemas.android.com/apk/res-auto"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg">
<com.viewpagerindicator.TitlePageIndicator
android:id="@+id/indicator"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:background="#26000000"
app:footerColor="#FFAA2222"
app:footerLineHeight="1dp"
app:footerIndicatorHeight="3dp"
app:footerIndicatorStyle="underline"
app:selectedColor="#FF000000"
app:selectedBold="true" />
<org.gaoqi.lyricbook.CustomViewPager
android:id="@+id/pager"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
/>
</LinearLayout>
这种情况往往是没有指明命名空间,需添加一条
xmlns:app="http://schemas.android.com/apk/res-auto"
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg">
<com.viewpagerindicator.TitlePageIndicator
android:id="@+id/indicator"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:background="#26000000"
app:footerColor="#FFAA2222"
app:footerLineHeight="1dp"
app:footerIndicatorHeight="3dp"
app:footerIndicatorStyle="underline"
app:selectedColor="#FF000000"
app:selectedBold="true" />
<org.gaoqi.lyricbook.CustomViewPager
android:id="@+id/pager"
android:layout_width="fill_parent"
android:layout_height="0dp"
android:layout_weight="1"
/>
</LinearLayout>
相关文章推荐
- android编译时报错:Error parsing XML: unbound prefix 的错误原因及解决方案
- android编写UI出现error: Error parsing XML: unbound prefix 的错误原因及解决方案
- 举例说明android编程中遇到Error parsing XML: unbound prefix错误的原因及解决办法
- Error Parsing XML: unbound prefix--关于Android中的xliff
- Error parsing XML: unbound prefix on XXX解决办法
- Error parsing XML: unbound prefix on library 解决方法
- Error parsing XML: unbound prefix解决方式
- error: Error parsing XML: unbound prefix
- Android xliff和字符串资源(Error parsing XML: unbound prefix)
- android - error: Error parsing XML: unbound prefix
- xml:error parsing xml unbound prefix
- error:Error parsing XML:unbound prefix
- Error parsing XML: unbound prefix on XXX解决办法
- android编程中遇到的关于Error parsing XML: unbound prefix错误的原因及解决办法
- error: Error parsing XML: unbound prefix 总结
- 使用自定义控件报错error: Error parsing XML: unbound prefix ---sep
- Error parsing XML: unbound prefix解决方式
- Error Parsing XML: unbound prefix--关于Android中的xliff
- 导入adt项目进入android studio报Error:(2) Error parsing XML: prefix must not be bound to one of the reserved
- Error parsing XML: prefix must not be bound to one of the reserved namespace names