当前位置:编程学习 > wap >>

新手 求救啊

main.xml里的内容
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:background="@drawable/white"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <TextView 
     android:id="@+id/myTextView1"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:textColor="@drawable/green"
        android:text="@string/hello" />

<CheckBox
android:id="@+id/myCheckBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/str_checked"
android:textColor="@drawable/green"
/>
</LinearLayout>
string.xml里的内容
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <string name="hello">Hello World, IrdcActivity!</string>
    <string name="app_name">Irdc</string>
    <string name="str_checked"/>
    <drawable name="green"/>
    <drawable name="white"/>


</resources>
报错在<drawable name="green"/>的green上
错误是 Error in an XML file: aborting build
求救啊 刚学这个 
补充:移动开发 ,  Android
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,