public interface

PagerTitleAdapter

com.neomades.ui.PagerTitleAdapter

Class Overview

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.

Summary

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.

Public Methods

public abstract String getPagerTitleAt (int position)

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.

Parameters
position the position of the requested title
Returns
  • a title for the requested page