关于listview item点击后变色
一般listview item点击变色有两种方式
1.对item布局的background = "@drawable/...",其中这个drawable至少有两种状态,一个是state_pressed="true",另一个是 state_pressed = "false"
2.对listview 的listSelector="@drawable/...",和上述一致
我现在的问题是这个item中还有一个子layout,我的想法是点击这个子layout时,只有这个子layout变色,但当点击除这个子layout的部分后,整个item变色
想问下有实现的办法没