如何用显示listview点击后的单选背景效果
1个回答
展开全部
<?xml version="1.0" encoding="utf-8"?>
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@color/lightblue"></item>
<item android:state_pressed="false" android:drawable="@color/lightgreen"></item>
</selector>
用这个再试试
<selector
xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="true" android:drawable="@color/lightblue"></item>
<item android:state_pressed="false" android:drawable="@color/lightgreen"></item>
</selector>
用这个再试试
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询