Method updateCustom of Class MainActivity

Method updateCustom (Fig. 3.14) updates the custom tip and total TextViews based on the tip percentage the user selected with the customTipSeekBar. Line 86 sets the percentCustomTextView’s text to the customPercent value formatted as a percentage. Lines 89–90 calculate the customTip and customTotal. Then, lines 93–94 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