2012-08-16 84 views
0

我只是导出软件包,使转盘到我的项目在XML文件中:运行时,它给错误Android的旋转视图

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:orientation="vertical" > 


    <ListView 
     android:id="@+android:id/list1" 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content"></ListView> 

    <LinearLayout 
     android:layout_weight="1" 
     android:padding="5dip" 
     android:gravity="top" 
     android:layout_width="fill_parent" 
     android:layout_height="fill_parent" 
     > 
     <com.me.controls.Carousel 
       android:layout_width="fill_parent" 
       android:layout_height="fill_parent" 
       android:id="@+id/carousel" 
       pj:UseReflection="true" 
       pj:Items="@array/entries" 
       pj:SelectedItem="0" 
       android:animationDuration="200" 
      /> 
</LinearLayout>    
</LinearLayout> 

:错误XML解析:绑定前缀。 但我不知道原因请任何帮助?

+0

试着写出“android:orientation =”vertical“”这行也是为你的listView里面的linearLayout .. – yahya 2012-08-16 09:54:27

+0

刚刚意识到,因为我知道你不应该用android:layout_width =“fill_parent” layout_weight =“1”..如果你需要使用体重,请尝试设置android:layout_width =“0px”。 – yahya 2012-08-16 09:56:12

+0

我的问题不在listView中te列表工作良好错误发生在 loleana 2012-08-16 10:06:47

回答

2

//创建ID为列表视图是错误的

android:id="@+android:id/list1" 

试试这个下面一个

android:id="@android:id/list" 
+0

问题不在列表查看列表工作良好,但当我添加误差happend – loleana 2012-08-16 10:11:55

1

这里需要定义命名空间中使用自定义视图的属性。

看看这个question

+0

不工作:(( – loleana 2012-08-16 10:22:55