java吧 关注:1,250,878贴子:12,734,346
  • 1回复贴,共1

xml报error: Error parsing XML: unbound prefix这样的错

只看楼主收藏回复

<?xml version="1.0" encoding="utf-8"?>
<ViewSwitcher
android:id="@+id/viewswitcher1"
android:layout_width="match_parent"
android:layout_height="122.0dip"
android:persistentDrawingCache="animation"
android:inAnimation="@android:anim/slide_in_left"
android:outAnimation="@android:anim/slide_out_right">
</ViewSwitcher>
找了好久找不到哪出错了,求大神解


IP属地:广东1楼2013-11-07 12:20回复
    居然在<ViewSwitcher下面加了xmlns:android="http://schemas.android.com/apk/res/android"这一句就OK了,一直都没去了解这一句话的作用,想不到今天果然中招了,谁了解这句话的作用的,百度上说得不太理解,求解释


    IP属地:广东2楼2013-11-07 12:29
    回复