Anonymous Inner Class That Implements Interface OnSeekBarChangeListener

Lines 98–120 of Fig. 3.15 create the anonymous-inner-class object named customSeekBarListener that responds to customTipSeekBar’s events. If you’re not familiar with anonymous inner classes, visit the following page:

Line 67 (Fig. 3.12) registered customSeekBarListener as customTipSeekBar’s OnSeekBarChangeListener event handler. For clarity, we define all but the simplest event-handling objects in this manner so that we do not clutter the onCreate method with this code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset