if(list_item_pos==position){
holder.listRelative.setBackgroundColor(R.color.list_view_bg);
}else{
holder.listRelative.setBackgroundColor(Color.WHITE);
}
------解决思路----------------------
...........你想问什么?
------解决思路----------------------
使用selector就可以解决了啊。
------解决思路----------------------
你是不是你设置的颜色就是透明的 你看下颜色 在别的地方设置下试试