ListView
android:id="@+id/listView_devices"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
SPAN style="COLOR: #ff0000" android:background="@android:drawable/dialog_frame"/SPAN
android:cacheColorHint="@color/transparent" /
红色的那段代码是重点哦.(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/bianchengyuyan/)这样很简单的一行代码就可以实现啦.