Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unchecking radio buttons in a Radio Group without the ripple animation

Tags:

I have a quiz app which displays the question in a textview and the 4 answers in a radio group with 4 radio buttons. To move to the next question, the user has to click a Next button.

When the user selects a particular radio button and clicks on Next button I repopulate my UI with the next question and its answers. Before displaying the next question I clear the radio button selection by using RadioGroup clearCheck().

However the user can see this selection change in the UI.

I have tried setting transparent color to the radio button background but that doesn't solve the issue.

How do I solve this?

like image 358
Sahana Kamath Avatar asked Mar 04 '17 08:03

Sahana Kamath


1 Answers

You can end the animation by calling radioGroup.jumpDrawablesToCurrentState() after the clearCheck().

like image 110
kezc Avatar answered Sep 24 '22 11:09

kezc