You’ll use an anonymous inner class to implement the TextWatcher interface (from package android.text) to respond to events when the user changes the text in this app’s EditText
. In particular, you’ll use method onTextChanged
to display the currency-formatted bill amount and to calculate the tip and total as the user enters each digit.