Method updateStandard of Class MainActivity

Method updateStandard (Fig. 3.13) updates the 15% tip and total TextViews each time the user changes the bill amount. The method uses the billAmount value to calculate the tip amount and the total of the bill amount and tip. Lines 78–79 display the amounts in currency format.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset