3.3.7. Implementing Interface OnSeekBarChangeListener for Handling SeekBar Thumb Position Changes

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.

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.