Viewpager is a component that implements multi-page switching,Fragmentpageradapter the adapter that controls its multiple pages behind the scenes. Each page is a fragment.
Pageindicator determines the appearance of the "tab bar", there are many ways to implement the TAB bar:
-
Small Circle type of
-
With the icon type
-
A small horizontal line, a distance from the bottom end of the screen.
-
Label type (tab)
-
The title type is a bit like the label type, but its current title page's Left/right title will roll up, which is indented at both ends.
-
The horizontal line at the bottom of the screen and fills the entire row.
There are also third-party implementations of pageindicator components, such as Pagerslidingtabstrip. Indicator Controls page switching by calling Viewpager's Setcurrentitem () method through Setpager and Viewpager associations.
Android:viewpager, indicator, fragment's relationship