Perhaps
where the orange 'state' is selected (see top of device screen where orange is selected using the 'state' buttons on a Canvas. Use a Canvas, an image with solid 'state' colors and the blocks above. Note, this does not seem to work in the emulator to develop, use a device.
To do this, the developer has to determine the color of each 'state' block ... use the 'disabled' blocks to get the color 'numbers' then disable those blocks. You do need them to determine the colors to input in get pixel block comparison. For instance, Purple is -6075996 for this example. What is within the 'state' outlines MUST be a solid color.
Did it work for you?
Regards,
Steve