Hi!
I searched almost everything on this forum, but didn't find answer to my question.
I want to create a button, with solid color of blue and a white image of my design on top of that. When the button is pressed, the blue should turn into orange, but the white part should remain white.
I know, I can create two images for this and apply them to button on each event, but the problem with this method is, that when the button size is changed (device orientation, different devices,...), the image is scaled and not in proportions as it should be anymore. The symbol should allways be in same proportions.
Can someone give me a hint?
Thanks!
The example of button that I want is:
I searched almost everything on this forum, but didn't find answer to my question.
I want to create a button, with solid color of blue and a white image of my design on top of that. When the button is pressed, the blue should turn into orange, but the white part should remain white.
I know, I can create two images for this and apply them to button on each event, but the problem with this method is, that when the button size is changed (device orientation, different devices,...), the image is scaled and not in proportions as it should be anymore. The symbol should allways be in same proportions.
Can someone give me a hint?
Thanks!
The example of button that I want is: