keep android button selected state

前端 未结 5 769
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-17 18:03

I know this is a question that has been asked many times before, but I can\'t seem to solve it in my code. I have two buttons, and when one is pressed, I would like to keep

5条回答
  •  隐瞒了意图╮
    2020-12-17 18:16

    Why are you using Buttons? CheckBox or RadioGroup is best solution for these case

    checkBox.setChecked(false);
    

提交回复
热议问题