java.lang.Object | ||
↳ | com.neomades.ui.View | |
↳ | com.neomades.ui.PagerTitleStrip |
![]() |
![]() |
PagerTitleStrip is a non-interactive indicator of the current, next, and
previous pages of a ViewPager
.
Non-interactive means that the title of the current page is not highlighted
(not underlined, same color as other titles). It is just centered above the
pager. For an interactive indicator, see PagerTabStrip
.
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 PagerTitleStrip, use
setPagerTitleStrip(PagerTitleStrip)
.
In iOS platform, the PagerTitleStrip
behaves like a PagerSlidingTabStrip
.
[Expand]
Inherited XML Attributes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PagerTitleStrip()
Creates a PagerTitleStrip.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
setDividerVisible(boolean visible)
Hides or displays the dividers.
| ||||||||||
void |
setPagerTitleAdapter(PagerTitleAdapter titleAdapter)
Sets a
PagerTitleAdapter that will supply titles for this
PagerTitleStrip as needed. | ||||||||||
void |
setSelectedTitleColor(Color color)
Sets the text color of the selected page label.
| ||||||||||
void |
setTitleColor(Color color)
Sets text color of all page labels (except the selected one if a
setSelectedTitleColor(Color) is set). | ||||||||||
void |
setTitleFont(Font font)
Sets text
Font of all page labels. | ||||||||||
void |
setTitleKeepNativeCase(boolean enabled)
Indicates if the PagerTitleStrip titles will use the default case of the
platform: depending on the platform the titles may be force in upper case or
lower case.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a PagerTitleStrip.
Hides or displays the dividers.
visible | the dividers visibility |
---|
Sets a PagerTitleAdapter
that will supply titles for this
PagerTitleStrip as needed.
titleAdapter | Adapter to use |
---|
Sets the text color of the selected page label.
color | the text color of the selected page label. |
---|
Sets text color of all page labels (except the selected one if a
setSelectedTitleColor(Color)
is set).
color | text color of all page labels |
---|
Sets text Font
of all page labels.
font | The font to apply on page labels |
---|
Indicates if the PagerTitleStrip titles will use the default case of the platform: depending on the platform the titles may be force in upper case or lower case.
enabled | true to enable to default behavior of the platform (by default the value is true). |
---|