buttonclick-value show in textfield
I want to make a "full" calculator with one button for each number (0-9) and button for each sign (+,-,*,/) etc.
My question is:
How can I show each button-click in the "answere"-textfield?
Example:
If I click button "5", then I want "5" to show up in textfield. Then I click button "+", and then I want "5 +" shall show up in the text field. Then button "2", and then I want "5 + 2" to show up in text field.
And then I will click on button "=" and then I want the textfield to show the answere (7).