public class

TabPageIndicator

extends HorizontalScrollView
implements PageIndicator
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.FrameLayout
         ↳ android.widget.HorizontalScrollView
           ↳ com.viewpagerindicator.TabPageIndicator

Class Overview

This widget implements the dynamic action bar tab behavior that can change across different configurations or circumstances.

Summary

Nested Classes
class TabPageIndicator.TabView  
[Expand]
Inherited Constants
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
TabPageIndicator(Context context)
TabPageIndicator(Context context, AttributeSet attrs)
Public Methods
void notifyDataSetChanged()
Notify the indicator that the fragment list has changed.
void onAttachedToWindow()
void onDetachedFromWindow()
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
void onPageScrollStateChanged(int arg0)
void onPageScrolled(int arg0, float arg1, int arg2)
void onPageSelected(int arg0)
void setCurrentItem(int item)

Set the current page of both the ViewPager and indicator.

void setOnPageChangeListener(OnPageChangeListener listener)
void setViewPager(ViewPager view, int initialPosition)
Bind the indicator to a ViewPager.
void setViewPager(ViewPager view)
Bind the indicator to a ViewPager.
[Expand]
Inherited Methods
From class android.widget.HorizontalScrollView
From class android.widget.FrameLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.viewpagerindicator.PageIndicator

Public Constructors

public TabPageIndicator (Context context)

public TabPageIndicator (Context context, AttributeSet attrs)

Public Methods

public void notifyDataSetChanged ()

Notify the indicator that the fragment list has changed.

public void onAttachedToWindow ()

public void onDetachedFromWindow ()

public void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

public void onPageScrollStateChanged (int arg0)

public void onPageScrolled (int arg0, float arg1, int arg2)

public void onPageSelected (int arg0)

public void setCurrentItem (int item)

Set the current page of both the ViewPager and indicator.

This must be used if you need to set the page before the views are drawn on screen (e.g., default start page).

public void setOnPageChangeListener (OnPageChangeListener listener)

public void setViewPager (ViewPager view, int initialPosition)

Bind the indicator to a ViewPager.

public void setViewPager (ViewPager view)

Bind the indicator to a ViewPager.