Let's Talk Android (Chapter 264: Overview of ViewPager in Android)

Hello everyone, the last time we talked about the example of BottomNavigationView in Android, this time we talked about the example ViewPager. Stop talking about gossip and get back to business. Let's talk to Android together!

You guys, in the previous chapter, we introduced the controls at the top and bottom of the screen. This time we introduced the controls in the middle of the screen, that is ViewPager. It is usually located in the middle of the program page and used for navigation. Switch to different pages by sliding the page. These pages can be Activity or Fragment.

ViewPager is essentially a control, so we can use it like other controls. Its main function is to slide to or to the right, which is very suitable for page operations on mobile phones. So it can be regarded as a navigation control.

This chapter only gives an overview of this control. In the following chapters, we will introduce how to use this control in detail.

Everyone, let’s stop here for the example of ViewPager in Android. If you want to know what other examples are, let’s listen to the next time!

Guess you like

Origin blog.csdn.net/talk_8/article/details/107524448