Androidアプリでのカスタムテーマの使い方を勉強中です。style.xml を作成した後、xml 文字列の下に入力します。
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@android:style/Theme.Light">
<item name="editTextColor">#00f</item>
</style>
</resources>
プロジェクトを実行すると、Eclipse でエラーが発生しました。属性「editTextColor」が見つかりませんが、sdkpath\platforms\android-17\data\res\values\themes.xml では、「editTextColor」属性が使用されます。
editTextColor を変更すると、アプリケーションが動作します。
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="@android:style/Theme.Light">
<item name="android:editTextColor">#00f</item>
</style>
</resources>
理由を教えてください。どうもありがとうございました。