I have a button that changes colors depending on certain parameters. Actually, it is also being used as a label that displays different text depending on the state of certain things. Now, if I dont define the colors in the code, the button has rounded corners by default (radius 5, I think). But with the color definations, the button shape has sharp corners. This even happens if I change the button properties in the designer to staelist drawable', instead of defaultdrawable.
Its thanks to the excellent support on this forum that my project, which started off with very modest requirements, is now getting close to the state I want it to be in.