com.neomades.ui.PagerTitleAdapter |
Interface providing the adapter to populate the title list of a
PagerTitleStrip
.
When implementing a PagerTitleAdapter, the following method must be implemented:
This will be used by a PagerTitleStrip (or one of its subclass) to populate the titles for the ViewPager. Ideally, there must be the same number of titles in the PagerTitleStrip as pages in the pager. This method will automatically be called when the associated pager current page changes.Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String |
getPagerTitleAt(int position)
This method will be called by the
ViewPager to obtain a title string
to describe the specified page. |
This method will be called by the ViewPager
to obtain a title string
to describe the specified page. The PagerTitleAdapter must be linked with a
ViewPager using a PagerTitleStrip
.
position | the position of the requested title |
---|