onCheckedChanged called automatically
It’s weird all of us have this problem but not official Google answer to this simple problem. The MOST simple it’s to check: buttonView.isPressed() If true, means the user clicked the view. No global variables are needed.