I am using an array of MaterialButton
s in an application. When one of the buttons is clicked, an asynchronous operation triggers. I want to disable all the buttons while the operation is still running so that no further clicks trigger concurrent operations. I know how to disable and re-enable the buttons depending on this operation, but while the operation runs, I want to highlight the button that triggered the operation (while still maintaining it disabled).
What is the best approach to accomplish this? The default behavior of the buttons is to become grey when disabled. Do I need to define custom xml
styles that can be swapped when a button gets clicked? I wonder if there is a simpler solution.