I am defeated by simple buttons!
If I place a button on a panel and make the top 0 and the left 0 then there is always a border around the button showing the parent panel which I don't want.
I can use a label but labels don't seem to respond to touch so that I cannot change the colour when it's pressed, although I can use a click event.
Panels behave the way I want but they don't have a text field.
So I'm using a panel, then a label, then a transparent panel over the label and I can respond the the panel touch, change the label colour on ACTION_DOWN/ACTION_UP and treat up or down as click.
I find it difficult to believe this is what everyone does.
How should I do it and what am I missing?
If I place a button on a panel and make the top 0 and the left 0 then there is always a border around the button showing the parent panel which I don't want.
I can use a label but labels don't seem to respond to touch so that I cannot change the colour when it's pressed, although I can use a click event.
Panels behave the way I want but they don't have a text field.
So I'm using a panel, then a label, then a transparent panel over the label and I can respond the the panel touch, change the label colour on ACTION_DOWN/ACTION_UP and treat up or down as click.
I find it difficult to believe this is what everyone does.
How should I do it and what am I missing?