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
Button
Dialog
I solved this issue by using a flag to keep my button's state.
private boolean isMyButtonEnabled = false; public void onMyButtonClick(View v) { if(isMyButtonEnabled){ .. } }