You’ll implement the SeekBar.OnSeekBarChangeListener
interface (from package android.widget
) to respond to the user moving the SeekBar
’s thumb. In particular, you’ll use method onProgressChanged
to display the custom tip percentage and to calculate the custom tip and total as the user moves the SeekBar
’s thumb.