code to edit the text ib an EditText widgit

Posted by user293663 on Stack Overflow See other posts from Stack Overflow or by user293663
Published on 2010-03-15T02:15:08Z Indexed on 2010/03/15 2:19 UTC
Read the original article Hit count: 286

Filed under:
|

Hello, I am a newbi programmer and am having trouble with a measurement conversion program I am working on. What I would like to do is have several EditText boxes. When one is filled in and a calculate button is hit then the rest will be populated with a converted number. The part I am getting stuck on is outputting the answers to EditText widgets.

ex: There are three EditText Widgets. a user inputs the number 6 into the first one (labeled inches) and presses calculate. I would like the next box to display .5 (labeled feet) and the last to display .1666 (this would be yards)

.setText() apparently does not work to modify the text in an EditText

any help would be greatly appreciated.

© Stack Overflow or respective owner

Related posts about edittext

Related posts about settext