私はAndroid開発で全く新しいです。TextViewのTextColorと背景の変更
FontColorとListViewItemが選択または押されている場合、その背景を変更しようとしました。 背景を変更すると、絶対に次のセレクタを使用しても問題ありません:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:drawable="@drawable/background_pressed"></item>
<item android:state_focused="true"
android:drawable="@drawable/background_pressed"></item>
<item android:state_selected="true"
android:drawable="@drawable/background_pressed"></item>
<item android:drawable="@android:color/transparent"></item>
</selector>
しかし、どのように、私は背景とFONTCOLORを変更することができますか?
ありがとう、ありがとうございます。 色を退色させる特別なメモもありがとうございます。 – Sandman
その場合は、回答を承認済みとマークしてください;) – Reinier