Android - Listen to a disabled button

前端 未结 8 2090
一整个雨季
一整个雨季 2021-01-17 08:56

How can I respond to an event based on clicking a disabled Button. I have a requirement that I have to present Dialog, when a disabled Button

8条回答
  •  感情败类
    2021-01-17 09:04

    Instead of disabling it, keep it enabled but use a flag to control your "inner state"

提交回复
热议问题