keep android button selected state

前端 未结 5 790
佛祖请我去吃肉
佛祖请我去吃肉 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:14

    Here's a thought, disable the pressed button and enable the others. Have the disabled button layout similar to the pressed layout. The user will see it as pressed, but it's actually disabled.

提交回复
热议问题