Use the Seekbar
to specify a custom tip percentage. Drag the Seekbar
’s thumb until the custom percentage reads 20% (Fig. 3.1(b)). As you drag the thumb, the tip and total for this custom tip percentage update continuously. By default, the Seekbar
allows you to select values from 0 to 100, but we specified a maximum value of 30 for this app.