1.在给item设置selector,点击item,没有出现背景变化的时候需要检查item中是否包含有checkbox或者butten,如果又包含的话
还需要设置一个属性
android:descendantFocusability="blocksDescendants"
就可以解决背景色没有变化的问题
1.在给item设置selector,点击item,没有出现背景变化的时候需要检查item中是否包含有checkbox或者butten,如果又包含的话
还需要设置一个属性
android:descendantFocusability="blocksDescendants"
就可以解决背景色没有变化的问题