我遇到了一个问题:我有一个xml drawable,我想用作radiobutton的背景,但是涟漪效应不起作用.任何人都可以帮助我吗?
我的xml为背景:
<?xml version="1.0" encoding="utf-8"?>
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="#8bc34a" >
<item>
<selector>
<item android:drawable="@drawable/tb_checked" android:state_checked="true"></item>
<item android:drawable="@drawable/transparent"></item>
</selector>
</item>
</ripple>
Run Code Online (Sandbox Code Playgroud)