Saturday 15 January 2011

android - How to get multiple button values into editext then display all the values dynamically? -


I am creating a calculator application I do not want to keep separate fields for value1 and value2. I want to calculate the value from a single edittext, which includes numbers and operators. I know how to parse and calculate operators, but press Dual to show and set the editor to display and say, say If I press 1 then 2 + 3 and 4, it should be stored as 12 + 43 and it should show how it is stored

When clicking a button , You can add text fields of that button, say something like this:

  Click adboot on Public Zero (see V) {textField.setText (textField.getText () + " + "); }    

No comments:

Post a Comment