Androidスタイルを機能させるのに問題があります。テストとして、EditTextコントロールを作成し、次のような「CodeFont」というスタイルに関連付けました。
EditText et = new EditText(this, null, Resource.Style.CodeFont);
次に、標準スタイルを継承し、テキストの色を次のように赤に変更するスタイルを定義しました。
<resources>
<style name="CodeFont" parent="@android:style/TextAppearance.Medium">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:textColor">#FF0000</item>
<item name="android:typeface">monospace</item>
</style>
</resources>
私は何が間違っているのですか?EditTextが表示されると、フォーカスのオレンジ色の境界線が表示されなくなります。これは、スタイリングが機能していると私に思わせます。ただし、テキストの色は黒のままです。