if(myCalcButton.isPressed())
        {
                double billNum = Double.parseDouble(myBillAmt.getText
().toString());
                double preNum = Double.parseDouble(myPrecentage.getText
().toString());

                myAns.setText(""+calcTip(billNum,preNum));
        }

thats what i am useing right now and it still will not change the
setText

On Jan 17, 12:25 pm, "Eddie O'Hagan" <[email protected]>
wrote:
> yea thats what I decided to do but when the button is pressed it still
> will not change the textview.
>
> On Jan 17, 8:07 am, Mark Murphy <[email protected]> wrote:
>
> > Eddie O'Hagan wrote:
> > > When I attempt to change the text of the textbox it does not seem to
> > > change and I cant figure out why.
>
> > You only ever calculate the tip once, when the activity is first opened.
> > The tip value at that point ($0.00) is the same as the value you have in
> > your XML as the value of the Ans TextView.
>
> > If you want the tip to change, you will need to arrange to get control
> > again sometime after the fields have been updated. The simple way is to
> > add a Button and recalculate the tip when the Button is pressed.
>
> > --
> > Mark Murphy (a Commons Guy)http://commonsware.com
>
> > Android Training on the Ranch! -- Mar 16-20, 
> > 2009http://www.bignerdranch.com/schedule.shtml
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to