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
I'm about to tackle this by using the selected state, which is generally available for use in widgets, and can be used in state list drawables. A simple search for usage of isSelected turns up results in ListView, GridView, TextView and TabLayout. And the documentation states
Views are typically * selected in the context of an AdapterView like ListView or GridView; * the selected view is the view that is highlighted.