<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" android:state_activated="true"/>
<item android:drawable="@android:color/black"/>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" android:state_activated="true"/>
<item android:drawable="@android:color/black"/>
</selector>
二
mListView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
demo 下载
http://download.csdn.net/detail/itcastldh/8602857