public class

PagerTabStrip

extends PagerTitleStrip
java.lang.Object
   ↳ com.neomades.ui.View
     ↳ com.neomades.ui.PagerTitleStrip
       ↳ com.neomades.ui.PagerTabStrip
Known Direct Subclasses

Class Overview

PagerTabStrip is an interactive indicator of the current, next, and previous pages of a ViewPager.

Interactive means that the title of the current page is highlighted (it may be underlined or with a specific color depending on the platform). For a non-interactive indicator, see PagerTitleStrip.

The title from each page is supplied by the method getPagerTitleAt(int) in the adapter supplied to the ViewPager. To associate a ViewPager with a PagerTabStrip, use setPagerTitleStrip(PagerTitleStrip).

Cross Platform Considerations

In iOS platform, the PagerTabStrip behaves like a PagerSlidingTabStrip.

Summary

[Expand]
Inherited XML Attributes
From class com.neomades.ui.View
[Expand]
Inherited Constants
From interface com.neomades.ui.Alignment
From interface com.neomades.ui.StretchMode
Public Constructors
PagerTabStrip()
Creates a PagerTabStrip.
Public Methods
void setSelectedIndicatorPaddingBottom(int selectedIndicatorPaddingBottom)
Sets the bottom padding of the selector indicator in DP.
void setSelectedIndicatorPaddingLeft(int selectedIndicatorPaddingLeft)
Sets the left padding of the selector indicator in DP.
void setSelectedIndicatorPaddingRight(int selectedIndicatorPaddingRight)
Sets the right padding of the selector indicator in DP.
void setSelectedIndicatorThickness(int selectedIndicatorThickness)
Sets the thickness of the selector indicator in DP.
void setTabIndicatorColor(Color color)
Sets the color of the bar (or tab indicator) that will underline the title of the current page.
[Expand]
Inherited Methods
From class com.neomades.ui.PagerTitleStrip
From class com.neomades.ui.View
From class java.lang.Object

Public Constructors

public PagerTabStrip ()

Creates a PagerTabStrip.

Public Methods

public void setSelectedIndicatorPaddingBottom (int selectedIndicatorPaddingBottom)

Sets the bottom padding of the selector indicator in DP.

Parameters
selectedIndicatorPaddingBottom the bottom padding of the selector indicator in DP.

public void setSelectedIndicatorPaddingLeft (int selectedIndicatorPaddingLeft)

Sets the left padding of the selector indicator in DP.

Parameters
selectedIndicatorPaddingLeft the left padding of the selector indicator in DP.

public void setSelectedIndicatorPaddingRight (int selectedIndicatorPaddingRight)

Sets the right padding of the selector indicator in DP.

Parameters
selectedIndicatorPaddingRight the right padding of the selector indicator in DP.

public void setSelectedIndicatorThickness (int selectedIndicatorThickness)

Sets the thickness of the selector indicator in DP.

Parameters
selectedIndicatorThickness the thickness of the selector indicator in DP

public void setTabIndicatorColor (Color color)

Sets the color of the bar (or tab indicator) that will underline the title of the current page.

Parameters
color the color of the tab indicator