radiobutton的selector是这样的:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/bg_bitmap1" android:state_checked="false"></item>
<item android:drawable="@drawable/bg_bitmap" android:state_checked="true"></item>
</selector>
bg_bitmap1如下:
<?xml version="1.0" encoding="utf-8"?>
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:gravity="center"
android:src="@drawable/redd"//bg_bitmap此处颜色不同的图片
android:tileMode="disabled" >
</bitmap>
当切换时,出现如上图 默认选项上残留一条红线情况是怎么回事