Swiping through a list of screens one by one is useful for scenarios where users wish to browse through the available screens. There are times, though, when users may prefer to be able to navigate directly to a particular screen. In this section, we will explore two options to provide direct screen navigation support. One option for directly navigating to a small number of screens and another for directly navigating to a larger number of screens.
Before we look at solutions to providing direct screen navigation, I would like to point out two direct screen navigation features of Android Studio that you should avoid.
On the Customize the Activity dialog we used earlier in the Adding swipe navigation with Android Studio section of this chapter, the Navigation Style selection offers two options other than the Swipe Views (ViewPager) option we chose. One option is Action Bar Tabs (with ViewPager), which creates a traditional tab...