コードで次のエラーが発生します。
エラー: 指定された名前に一致するリソースが見つかりません ('background' で値 @color/red')。
これが私のTextViewです:
<TextView
android:id="@+id/tv01"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/prizeFund"
android:background="@color/red">
</TextView>
色の定義は、res/values の colors.xml にあります。
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="red">#ff0000</color>
<color name="green">#00ff00</color>
<color name="blue">#0000ff</color>
</resources>