I'm playing with the user interface, and I'm trying to implement a button like this: http://designmoo.com/1111/blue-button/
But if I change the device dimensions, he will go too big or too little. How can I implement a method to have the button always with the right dimensions?
You can read this thread for more info:
but I have problems, because I'm trying to create a function to make dynamic button based on the png but I have lots of problems... For example to set text on the button.
Without using scale mode I got all working, but I'm always stuck to the button...
It's actually a simple math problem. Also it is not recommended to scale buttons so much, but you can do it like that: