Displaying Initial Values in the TextViews

Lines 54–55 set amountDisplayTextView’s text to the initial billAmount (0.00) in a locale-specific currency format by calling the currencyFormat object’s format method. Next, lines 56–57 call methods updateStandard (Fig. 3.13) and updateCustom (Fig. 3.14) to display initial values in the tip and total TextViews.

Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.