public interface

PagerAdapter

com.neomades.ui.PagerAdapter

Class Overview

Interface providing the adapter to populate pages inside a ViewPager.

Summary

Public Methods
abstract View createPage(int pageNumber)
Create the page for the given position.
abstract void destroyPage(int pageNumber, View content)
Remove a page for the given position.
abstract int getCount()
Gets the number of pages available.

Public Methods

public abstract View createPage (int pageNumber)

Create the page for the given position.

Parameters
pageNumber the position of the new page
Returns
  • the created page

public abstract void destroyPage (int pageNumber, View content)

Remove a page for the given position.

Parameters
pageNumber the position of the page to be destroyed
content the detached view

public abstract int getCount ()

Gets the number of pages available.

Returns
  • the number of pages