4.2.7. Scrolling Through Saved Searches

Figure 4.10 shows the app after we’ve saved 10 favorite searches—only five of which are currently visible. The app allows you to scroll through your favorite searches if there are more than can be displayed on the screen at once. The GUI component that displays the list of searches is a ListView (discussed in Section 4.3.1). To scroll, drag or flick your finger (or the mouse in an AVD) up or down in the list of Tagged Searches. Also, rotate the device to landscape orientation to see that the GUI dynamically adjusts.

Image

Fig. 4.10 | App with more searches than can be displayed on the screen.

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.