未明问题

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

    
    <TextView 
        android:id="@+id/tv_shoppingList"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/shoppingList_tv_text"
        android:textSize="25sp" />
    
    
    <CheckBox 
        android:id="@+id/CheckBox_MP4"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/tv_shoppingList"
        android:text="@string/woods_text_MP4"
        android:layout_marginStart="20dip"
        android:layout_marginLeft="20dip"
        android:layout_marginTop="30dip" />
    
    
    <CheckBox 
        android:id="@+id/CheckBox_musicCD"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/CheckBox_MP4"
        android:text="@string/woods_text_musicCD"
        android:layout_alignLeft="@id/CheckBox_MP4" />
    
    
    <CheckBox 
        android:id="@+id/CheckBox_book"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/CheckBox_musicCD"
        android:text="@string/woods_text_book"
        android:layout_alignLeft="@id/CheckBox_musicCD" />
    
    
    <TextView 
        android:id="@+id/tv_yourChoice"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/CheckBox_book"
        android:layout_marginTop="20dip"
        android:text="@string/yourChoiceWoods_text"
        android:textSize="20sp" />
    
    <TextView 
        android:id="@+id/tv_yourWoodsList"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/tv_yourChoice"
        android:textSize="20sp" />
    
    <Button 
        android:id="@+id/bt_nextActivity"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/tv_yourWoodsList"
        android:layout_marginTop="15dip"
        android:layout_centerHorizontal="true"
        android:text="@string/next" />
    

    
    
</RelativeLayout>

 

Android开发,由一个Activity跳转到此xml对应的Activity,加上最后一个Button时,程序崩溃,去掉则ok,id为

tv_yourWoodsList的TextView的内容会变化, 随之前的选中的checkb而变化。
错误原因暂不清楚,记录。
posted @ 2015-02-03 22:17  Crazy Zidane  阅读(120)  评论(0编辑  收藏  举报