Ok, I set it in code.
How to get the state of the button ? because when a photo item is selected I need to update another text object to the name of the selected photo. If its deselected, then I also need to update to nill.
If I know what state the button is in, either normal or highlighted, then I can act accordingly. I can only find setState but not getState.