Good day. How can I make the button disabled?
E.g. I have a program with a list of showtimes and a list of related channels, where this program also shows.
But, for some programs there are only one current channel available. So, I don't need the button functionality to choose another channel. I can do
but it still could be focused. How can I make this button not focusable?
As an alternative approach, could you implement logic in your channel application that stores the number of channels for a given program, and then just generates a button for each channel?
Hi. But in this way the button is still focusable. And also, I need to open the list of similar channels with the current program when I click on the channel button.
Unfortunately, It's not the way. I hoped there is some attribute "disable = true" for buttons, like in HTML.
I think there is one way: listen to key press and if channels count = 1, then move focus to another button.