I have custom styled a RadioButton for adding radiobutton image on the right side
<RadioButton
android:layout_margin="20dp"
android:drawableRight="@drawable/custom_btn_radio"
android:button="@null"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Invite Only"/>
custom_btn_radio.xml
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/check_box" android:state_checked="false"/>
<item android:drawable="@drawable/close_btn" android:state_checked="true"/>
</selector>
but, the radiobutton's ripple effect also enlarged. how can i remove ripple effect from RadioButton? and also how to customize ripple effect?
Thank you in advance.
Open Settings . Scroll down and select Accessibility. Scroll down to Display and tap Text and display. Tap the toggle switch for Remove animations to turn it on.
Make RadioButton background to transparent
android:background="#ffffffff"
or
android:background="@android:color/transparent"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With