Daniel, all right ?
The following is a link from the official Google documentation regarding this feature. It explains well what each attribute does and gives an example at the end. Follow some excerpts from the page:
Create the res/color/button_text.xml file with the contents below.
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true"
android:color="#ffff0000"/> <!-- pressed -->
<item android:state_focused="true"
android:color="#ff0000ff"/> <!-- focused -->
<item android:color="#ff000000"/> <!-- default -->
</selector>
And here an example of implementation, note that in the attribute android:textColor
we refer to the res/color/button_text.xml
that we did above:
<Button
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/button_text"
android:textColor="@color/button_text" />
Link to the documentation page here.
You say you changed Listview, post that code.
– ramaral
I just changed color some items with getview.
– daniel12345smith
Look at this reply
– ramaral
Possible duplicate of How to color a listview item while onItemLongClick is being called?
– ramaral